[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Thu Mar 18 20:16:00 UTC 2021
#35725: Add WebP support.
-------------------------------------------------+-------------------------
Reporter: markoheijnen | Owner:
| adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.8
Component: Media | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses:
tests needs-dev-note dev-feedback |
-------------------------------------------------+-------------------------
Comment (by adamsilverstein):
> Okay, cool, thanks! I must have misunderstood when reading. Testing
sounds good!
Working on it!
Looking more carefully at this bit: https://github.com/WordPress
/wordpress-develop/blob/679ccc35e63e62a90c768afcc16f46bd154dfb65/src/wp-
includes/class-wp-image-editor.php#L319-L320 - the way the code works, it
checks if the editor (could be gd or imagick) has support for the mime
type **after** the new mapping happens. If the type is not available, it
switches to the editor's default type. I can see an improvement though: we
shouldn't do the remapping at all if the new type will not be supported.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list