[wp-trac] [WordPress Trac] #35725: Add mime-type for Webp
WordPress Trac
noreply at wordpress.org
Fri Feb 19 20:20:32 UTC 2021
#35725: Add mime-type for Webp
-------------------------------------------------+-------------------------
Reporter: markoheijnen | Owner:
| adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: Media | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion needs-testing | Focuses:
has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by adamsilverstein):
Hey, great - thanks for catching that @blobfolio!
I also left off one block of code I wasn't sure about:
{{{
// Render WebP previews as PNG to workaround possible segfault issues.
if ( 'image/webp' === $mime_type ) {
$extension = 'PNG';
$mime_type = 'image/png';
}
}}}
Do you know if this is still required? Do you have any additional context?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list