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

WordPress Trac noreply at wordpress.org
Sat Jul 1 14:59:15 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 In addition to HDR AVIF, "gain maps" for both AVIF and JPG are
 key technologies for tools like ImageMagick to support. This new spec
 enhances existing file formats (JPG, AVIF, JXL) with a secondary
 (auxiliary) embedded image and some metadata. This allows a single file to
 render in an optimal way on SDR or HDR displays, and improves tone mapping
 for modest HDR screens (such as viewing an image mastered for 1600 nits on
 a 600 nits HDR display).

 Adobe has released the specs and sample images, and Chrome Canary (both
 desktop and under Android 14) support JPG gain maps (under a dev flag).
 The results are very impressive. This is definitely the future. A JPG with
 SDR gain map is backwards compatible with all viewers (if your setup does
 not support HDR or does not understand gain maps, you just see the SDR
 version). However, image reprocessing by services like ImageMagick need to
 support it, otherwise the new output just becomes SDR JPG. an AVIF with a
 gain map is the ideal solution (given 30% size reduction to help offset
 the size of the auxiliary image) and hopefully isn't too far behind JPG
 gain map support.

 Here's an issue I've raised requesting support for gain maps in
 ImageMagick: https://github.com/ImageMagick/ImageMagick/issues/6377

 From a WordPress perspective, I think we just need WP to allow uploading
 of AVIF, and ImageMagick can handle HDR AVIF and gain maps for AVIF or
 JPG. This seems more suited to ImageMagick's strengths/focus and support
 from both isn't necessary (though a good feature to consider for core
 support longer term).

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


More information about the wp-trac mailing list