Can Webp Conversion Be Disabled?
The Webp conversion is toasting my images. I'd love to have a quality/compression control setting. But if that's not possible, is there any code we can add to functions.php to just disable it?
Just bumping this topic. I'm kind of holding off on a new community until I know I can upload higher resolution images. Or even if there's functions.php code I can add in to bypass the webp conversion, that would be cool.
Thanks to Florian D.Β got webp conversion disabled:
// 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;
}