How to Generate Animated Webp from a GIF image #210
-
I'm trying to figure out generating animated webp from a GIF image. From this Stackoverflow link, I have tried as follow:
However, that is causing the following error:
From the Libvips documentation, I think that the argument ``'n' has removed. What is the proper code to generate animated webp from an animated GIF image with lesser file size? Thank you PHP version: 8.2.5 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Hi @AmitSonkhiya, it should work, I guess your libvips has been built without a GIF loader: https://www.libvips.org/API/current/VipsForeignSave.html#vips-gifload |
Beta Was this translation helpful? Give feedback.
-
Hi @jcupitt , I'm opening the discussion again as I'm stuck here. With the I have tried the resize method but that requires a scale parameter rather than specific size (width).
Thank you again |
Beta Was this translation helpful? Give feedback.
-
I'm still digging more. Uhm! @jcupitt I'm able to create SQUARE static thumbnails using the following code.
I'm curious if we can generate a square thumbnail from a rectangle image while preserving the animation? Thank you |
Beta Was this translation helpful? Give feedback.
Could you have two libvipses installed? I tried this:
And it works fine on my mac. That's with libvips from homebrew.