[wp-trac] [WordPress Trac] #63773: Palette-based PNG cause failure attempting AVIF/WebP conversion under GD
WordPress Trac
noreply at wordpress.org
Thu Jul 31 17:31:27 UTC 2025
#63773: Palette-based PNG cause failure attempting AVIF/WebP conversion under GD
--------------------------------------+------------------------------
Reporter: adamsilverstein | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.8
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by adamsilverstein):
I added a simple test to convert an indexed PNG to a WebP. As expected, it
fails.
Test - https://github.com/WordPress/wordpress-develop/pull/9368/files
#diff-551c6fb8796176aa11b26a07c677b2b56c97f02d496fc3028cde5c083730d52d
"Fatal error: Paletter image not supported by webp in /var/www/src/wp-
includes/class-wp-image-editor.php on line 577"
(https://github.com/WordPress/wordpress-
develop/actions/runs/16655700347/job/47140087933?pr=9368)
Pushing the fix next...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63773#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list