Skip to main content

prevent .gif from being converted to WebP

Working function:

add_filter('fluent_community/convert_image_to_webp', function($convert, $file) {
    if ($file['type'] === 'image/gif') {
        return false; // don't convert .gif files
    }
    return $convert;
}, 10, 2);

I made a post / roadmap request to enable .gif autoplay and this looks to solve that.

Eli LinaresΒ 

Ron Dover

Thank you πŸ™

Deckard Cain

Your very welcome Ron DoverΒ - if anything else pops up, let me know I'll try to fix it for you.