I need to resize an animated GIF file without destroying the animation.
How can I do it using PHP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you have imagemagick access, you can do this:
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!