[wp-trac] [WordPress Trac] #53724: image conversion from jpg to webp no longer working
WordPress Trac
noreply at wordpress.org
Wed Jul 21 18:22:00 UTC 2021
#53724: image conversion from jpg to webp no longer working
---------------------------+-----------------------------
Reporter: martinvonberg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.8
Severity: normal | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
In preparation for WP 5.8 I tested the new filter
'image_editor_output_format' as described. It worked with WP5.8-RC4 from
2021-07-17. No Problems at all. After the update to WP5.8 the 2021-07-21
the images are no longer converted. Tested on local site, staging site and
productive site. The used code is:
{{{#!php
<?php
add_filter( 'image_editor_output_format', function( $formats ) {
$formats['image/jpeg'] = 'image/webp';
return $formats;
}
);
}}}
The servers environment is show in the attached file of the wp health
check. No server setting was changed between the test and the update. I
double checked to attach the code to a mu-plugin, a separate plugin and
the functions.php.
The webp support is great, so I wanted to use it immediately.
Best Regards
Martin
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53724>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list