[wp-trac] [WordPress Trac] #51228: Include support for the AVIF image format

WordPress Trac noreply at wordpress.org
Fri Jul 7 15:35:07 UTC 2023


#51228: Include support for the AVIF image format
-------------------------------------+-------------------------------------
 Reporter:  lukefiretoss             |       Owner:  adamsilverstein
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-unit-    |     Focuses:  performance,
  tests                              |  sustainability
-------------------------------------+-------------------------------------

Comment (by gregbenz):

 @nickpagz The converted version of the image is showing as SDR with some
 notable changes in metadata:
 - "Color Primaries" was **SMPTE EG 432-1** and got stripped out. I believe
 that's P3-D65 and would be a significant issue for gamut.
 - "Transfer Characteristics" was **SMPTE ST 2084, ITU BT.2100 PQ** and got
 stripped out. That's a major issue, as PQ is the HDR EOTF.
 - "Seq Level Idx 0" changed from 1 to 13 (I don't know what this data is
 or if it has any relevance).
 - "Image Pixel Depth" was 10 10 10 and got stripped out. I don't know if
 the bad image is 10-bit or now 8-bit, but this seems like a potential
 issue.

 Without digging further, I'm not sure if the pixels were modified or if
 all the problems are just in the metadata. You could probably play around
 with something like EXIFTOOL or AVIFENC to try to change the metadata if
 you need to further isolate why it is a bad conversion.

 This source image of mine does not use a gain map, the problems here are
 with standard HDR AVIF conversion.

 Agreed, the caniuse page for AVIF is not helpful for HDR. I have raised
 issues requesting to track HDR AVIF and HDR JPEG (gain map, aka Ultra HDR
 JPG):
 https://github.com/Fyrd/caniuse/issues/6504
 https://github.com/Fyrd/caniuse/issues/6759

 Safari's tone mapping is inferior to Chrome at this stage and it does not
 support HDR as far as I know (does not seem to work in the current Tech
 Preview 173, unless I'm missing some dev flag to enable it). Chrome itself
 has improved quite a bit since last year (added support of HDR metadata,
 improved rendering of saturated HDR colors, added support for JPG gain
 maps in Canary, etc).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51228#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list