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

WordPress Trac noreply at wordpress.org
Fri Oct 27 23:57:29 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 adamsilverstein):

 [attachment:"51228-avif-compat-php.diff"] expands format support detection
 for `WP_Image_Editor_GD::supports_mime_type` to include `AVIF` which was
 added in PHP 8.1.

 This enables support for AVIF images when PHP's GD supports it.

 Before this change, WordPress did not properly detect GD support for AVIF
 when available in PHP 8.1 and above.

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


More information about the wp-trac mailing list