[wp-trac] [WordPress Trac] #52867: Add capability to set default format for image sub-sizes.
WordPress Trac
noreply at wordpress.org
Fri Apr 23 06:53:40 UTC 2021
#52867: Add capability to set default format for image sub-sizes.
---------------------------------------------------+---------------------
Reporter: adamsilverstein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.8
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev-feedback | Focuses:
---------------------------------------------------+---------------------
Comment (by mikeschroder):
Replying to [comment:16 mikeschroder]:
> - I noticed that the default image editor on my environment, Imagick,
did not support WebP. GD on the same system did support WebP, but it
wasn't used because the editor is chosen on whether it supports the format
being loaded.
As a follow-up on this, we could probably add support for checking more
than one mime-type, and include the filter here as well, which would fix
the problem:
https://github.com/WordPress/wordpress-develop/blob/master/src/wp-
includes/media.php#L3752
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52867#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list