Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#59760 assigned defect (bug)

Expand format support detection for `WP_Image_Editor_GD::supports_mime_type` to include AVIF

Reported by: adamsilverstein's profile adamsilverstein Owned by: adamsilverstein's profile adamsilverstein
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch has-unit-tests
Focuses: Cc:

Description (last modified by adamsilverstein)

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

Currently WordPress does not properly detect GD support for AVIF when available in PHP 8.1 and above.

Note that WP_Image_Editor_Imagick::supports_mime_type already detects AVIF support correctly.

Attachments (1)

59760.diff (2.0 KB) - added by adamsilverstein 4 months ago.

Download all attachments as: .zip

Change History (6)

This ticket was mentioned in PR #5584 on WordPress/wordpress-develop by @adamsilverstein.


4 months ago
#2

  • Keywords has-patch has-unit-tests added; needs-patch removed

Enable support for AVIF images when PHP GD supports it.

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

Trac ticket: https://core.trac.wordpress.org/ticket/59760

#3 @adamsilverstein
4 months ago

  • Description modified (diff)

#4 @adamsilverstein
4 months ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned

#5 @adamsilverstein
4 months ago

  • Milestone changed from 6.5 to Future Release
Note: See TracTickets for help on using tickets.