Skip to main content

Disabled Webp but JPG compression still HIGH

Thanks to Florian D. got webp conversion disabled. But Fluent Community is still doing HIGH compression on JPG. It's not my WordPress site—actually have JPEG compression disabled.

Here's my jpeg compression code AND the webp code. Is there any way to adjust the compression? I'm holding off on a community due to this.

Thank you!

// disables jpeg compression
add_filter('jpeg_quality', function($arg){return 100;});
add_filter('wp_editor_set_quality', function($arg){return 100;});

// disables webp conversion
add_filter( 'fluent_community/convert_image_to_webp', 'no_fluentcomm_optimize_gif', 10, 2 );

function no_fluentcomm_optimize_gif( $willConvert, $file) {
    $ext = pathinfo($file['url'], PATHINFO_EXTENSION);
    if ( $ext === 'gif' || $ext === 'jpg' || $ext === 'jpeg' ) {
        return false;
    }

    return $willConvert;
}

kyler boudreau

The new release has fixed this!

// fluent community
add_filter('fluent_community/media_upload_resize', '__return_false', 10);

// disable image resizing
add_filter('fluent_community/convert_image_to_webp', '__return_false', 10); // disable webp conversion

Remove the old code above if you're using and add this new stuff.