Set sub sizes to be generated in JPG image format in WordPress 5.8

Set sub sizes to be generated in JPG image format in WordPress 5.8 on child sites.

Snippet Type

Execute on Child Sites

Snippet

function mysite_wp_image_editor_output_format( $formats ) {
    $formats['image/jpg'] = 'image/webp';
 
    return $formats;
}
add_filter( 'wp_image_editor_output_format', 'mysite_wp_image_editor_output_format' );
1 Like

Reference

1 Like

A plugin option.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.