Viewing 4 replies - 16 through 19 (of 19 total)
  • In my opinion your plugin is close to perfect, so my suggestion is to not make it overcomplicated. Do not add too much stuff to it, like more settings and buttons.

    Only small issue I can think about is when I mark checkbox to include folder /themes, I forgot to click Save and clicked button to regenerate all images so it did’t work. Had to click Save button first, but that wasn’t obvious at a first glance. Maybe it’s worth to do options change through AJAX?

    Thread Starter docbt

    (@docbt)

    I tested your new version and it workes perfect ????

    Everything got converted and I tested the WebP images successfully with chrome ??

    Well done and thank you very much!

    The only thing that might be better is, that new images will not be detected automatically, if they are not uploaded to the media library.

    Would be nice, if the plugin could detect plugin/theme changes and then suggest generating the files again (or do it automatically).
    Alternatively users might use your manual custom function in their themes functions and fire it on upload of images, if their plugins have an event/hook for that…

    • This reply was modified 4 years, 5 months ago by docbt.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @wellmadeonline, this option is very interesting, but I prefer that users consciously save changes to the settings. The more so that they carry several background operations with me. But thank you for the idea.

    @docbt, your idea is also very useful. However, I don’t want to add too many items to the plugin. I added the webpc_regenerate_all action (new version of the plugin available at the same URL), which allows you to regenerate all images again. Information about it will also appear in the FAQ.

    To enable automatic image regeneration after changing the theme, use this code:

    add_action('init', function()
    {
      do_action('webpc_regenerate_all');
    });

    If you have no more comments, I have a request to close the thread as “resolved”.

    Hi again @mateuszgbiorczyk , after some time I got few ideas about improving plugin functionalities. On one of my websites I use caching plugin WP Rocket, and with “lazy load” option enabled some images (logo) just not displaying. Disabling lazy load for this particular image not working and I think this might be due to WebP conversion. So I figured – it is maybe a good idea to add option to disable converting specific images? With absolute/relative path, or/and wild cards?

    Other thing: I read an article about WebP compression https://siipo.la/blog/is-webp-really-better-than-jpeg

    It seams that WebP format is not as good as Google thinks it is. It would be possible to add conversion images to AVIF format? Like an option maybe or experimental feature.

    And last thing. Some of the images been converted by the plugin with question marks in their names, like somefile?sometex.webp I use GIT on my remote server. It is not a problem for Linux OS to have special characters in file names, but Windows OS won’t let the GIT create files with question mark in their names. Because of that I had some difficulties with git pull command on my windows machine.

    Regards

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Add custom folders’ is closed to new replies.