Skip to content

encoded avif could display complete green on some decoders #2883

@qdwang

Description

@qdwang
Image

20251013_170247-IMG.AVIF.zip

This avif file is encoded by libavif API, it works great on any platform, like browsers, iOS 18, lightroom, macos 15 etc.

But it will show complete green in the Photos App under iOS 26. (Even if the file is in Files App under iOS 26, it displays great)

I know it could be an iOS bug.

But why this sample displays correctly on iOS 26?
sample: https://github.com/AOMediaCodec/av1-avif/blob/main/testFiles/Link-U/fox.profile2.12bpc.yuv444.avif

And I also converted my avif to another yuv444 12bit avif by using magick, it also works great on iOS 26.

By using avifdec -i i cannot get too much useful info to analyze the issue, they are pretty much the same.

I'm wondering what's the flaw in my encoded avif...


Updated

I figured out avifEncoderAddImageGrid can cause the issue. (Also does avifenc --grid NxN)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions