• Resolved goatman1

    (@goatman1)


    Hi

    Plugin works great. Thanks!

    However, all my converted animated gif’s became still images, and were no longer animated.

    Can your plugin convert animated gifs to animated webp ?

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

    (@mateuszgbiorczyk)

    Hi @goatman1,

    Thanks for your message.

    Verifying all files and checking if they are animated would be too burdensome, so I didn’t implement this solution. If there is a better way, I will try to implement it.

    At this moment, I have a different solution for you. Please try to delete all regenerated images at this time.

    If you have more of them, try using a prefix for such images (e.q. animated-). Then add the following filter to your code (using the correct file name):

    add_filter('webpc_attachment_paths', function($paths)
    {
      if (!isset($paths[0]) || !preg_match('/\/animated-(.*?)\.png/', $paths[0])) {
        return $paths;
      } else {
        return [];
      }
    });

    And then regenerate your images. Does this solution help you?

Viewing 1 replies (of 1 total)
  • The topic ‘animated gif to animated webp’ is closed to new replies.