I need to resize an animated GIF file without destroying the animation.
How can I do it using PHP?
ResizeImage.net. ResizeImage.net is a no-nonsense online tool that helps you resize all types of images. The tool will accept GIF files of up to 30MB in size and 10MP in resolution. The tool lets you crop images, rotate images and also resize the image by specifying quality and aspect ratio.
if you have imagemagick access, you can do this:
system("convert big.gif -coalesce coalesce.gif"); system("convert -size 200x100 coalesce.gif -resize 200x10 small.gif");
this is most likely possible with the imagemagick plugin if you don't have system() access
NOTE: this may create a larger filesize though a smaller dimensions image due to coalescing essentially deoptimizing the image.
UPDATE: If you don't have ImageMagick access, you should be able to use a combination of the following steps to resize an animated gif (assuming you have GD access):
This is definitely much more intensive than the ImageMagick route, but it should be technically possible.
If you get it working, please share with the world!
Try GDEnhancer (Use ImageCraft). It only need GD Library, and it keep gif animation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With