Using image_editor_output_format
-
I’m trying to learn how to use image_editor_output_format . I have this kind of thing working fine:
function map_jpeg_to_webp( $mappings ) {
$mappings[ 'image/jpeg' ] = 'image/webp';
return $mappings;
};
add_filter( 'image_editor_output_format', 'map_jpeg_to_webp' );That makes copies of my jpgs, so now I have a bunch of webp files
but the media library doesn’t know about them and i can use them.
What do I do with all these webp files now?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Using image_editor_output_format’ is closed to new replies.