Closed Bug 1687443 Opened 3 years ago Closed 3 years ago

Avif file not displayed

Categories

(Core :: Graphics: ImageLib, defect, P3)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox85 --- disabled
firefox86 --- affected

People

(Reporter: padenot, Assigned: jbauman)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Attached image image.avif

See the file attached. It is from this service:

https://shortpixel.com/

This particular avif file has been generated like so:

https://cdn.shortpixel.ai/client/to_avif,q_lossless,ret_img,w_150/<URL HERE>

Flags: needinfo?(jbauman)
Summary: Avif file not displaed → Avif file not displayed
Severity: -- → S3
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → All

The file here is invalid. As AVIF is based on MIAF, files must conform to the MIAF requirements as well, one of which is a requirement to include mif1 in the compatible brands section of the ftyp box. Specifically in section 7.2.1.2:

The FileTypeBox shall contain, in the compatible_brands list [...] mif1

Compare the ftyp box of this file (which continues until the beginning of the meta box):

$ hexdump -C -n 24 bug-1687443.avif 
00000000  00 00 00 10 66 74 79 70  61 76 69 66 00 00 00 00  |....ftypavif....|
00000010  00 00 01 26 6d 65 74 61                           |...&meta|

With a valid one:

hexdump -C -n 40 Monochrome.avif 
00000000  00 00 00 20 66 74 79 70  61 76 69 66 00 00 00 00  |... ftypavif....|
00000010  6d 69 66 31 61 76 69 66  6d 69 61 66 4d 41 31 42  |mif1avifmiafMA1B|
00000020  00 00 01 1b 6d 65 74 61                           |....meta|

I'm currently looking for the right place to file a bug with shortpixel's tool, but would appreciate a pointer if anyone reading this knows where the right place is or where exactly the code they're using for generating the ftyp header resides.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(jbauman)
Resolution: --- → INVALID
Assignee: nobody → jbauman
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: