3

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!

Dalton Tan
  • 485
  • 1
  • 6
  • 17

1 Answers1

0

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.

Community
  • 1
  • 1
Anticom
  • 975
  • 13
  • 29