• Resolved tmnewslang

    (@tmnewslang)


    Hi,

    I tried excluding the following folder from convertig to WebP :

    /wp-content/uploads/formidable/*

    I need the plugin to stop serving WebP for files in this folder. Because these are user uploaded files via the Formidable plugin. So in the exclusions I simply added : formidable. But it’s not working.

    Because it’s unclear if I need to add the full path or just a folder name, and if the child folders (there are several, created by date) are also ignored. I also tried putting “wp-content/uploads/formidable” but it’s still not working.

    When I open the JPG file and hit save, it saves a WebP. This is a problem for my client who needs the actual source file to work with.

    Let me know, thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @tmnewslang,

    Thanks for reporting this issue!

    I have identified the bug and fixed it. I can provide you with a beta version that includes the fix. You can download it here.

    Before installing the beta version, you should manually delete the already converted images from:
    /wp-content/uploads-webpc/uploads/formidable/

    This is necessary because adding a directory to the Excluded directories list does not affect files that have already been converted. Only new files will be excluded after applying this fix.

    With this fix, you simply need to enter the name of the directory you want to exclude in the “Excluded directories” field in the plugin settings. To exclude the formidable folder, just enter:
    formidable

    Please let me know if the fix works as expected. This improvement will be included in the next official release of the plugin, so you’ll be able to update it normally in the future.

    Best,
    Mateusz

    Thread Starter tmnewslang

    (@tmnewslang)

    Hi,

    Thanks a lot for the quick answer and quick fix.

    I’ve installed the new plugin and changed the exclude path to formidable. Now it works but it’s also working on existing files. I wanted to remove webp files from inside the folder but there are none.

    I use the .htaccess, so maybe it was generating webp on demand ? I don’t know why but it’s working even better than expected.

    How do you explain that ?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @tmnewslang The plugin does not have a function to generate files on demand. If there are no converted files in this directory (/wp-content/uploads-webpc/uploads/formidable/), it means that the WebP images are provided by another tool, e.g. another image optimization plugin or CDN service.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Excluding a folder in the upload folder does not work’ is closed to new replies.