3
votes

I need to resize animated GIF in PHP without ImageMagick. I am using the latest GIFDecoder and GIFEncoder classes from PHPclasses. When I extract each frame from the GIF, I get blotches of transparent areas on all the frames but the first one, even though the GIF is not transparent at all. Even putting them back together does not work. I have tried other files but still have the same problem.

The original

The original

How it turned out

How it turns out

Individual frames

Individual frames

If there are other solutions to resizing animated GIF please tell me, too. Thanks!

1
How did you believe that animated GIFs worked? - Ignacio Vazquez-Abrams
@IgnacioVazquez-Abrams I don't really know what you mean, but I added some exmaples so you can understand better. - Dalton Tan
Doesn't work. I get an error message. - Dalton Tan
Can you post your PHP code? - Chris Wheeler

1 Answers

0
votes

I would recomment using ImageMagick. It's way faster and more powerfull than any custom coded PHP class.

Please take a look at this thread. The top answer even offers an alternative solution, if you have no access to ImageMagick on your server.