matthewwithanm / pilkit

Utilities and processors built for, and on top of PIL
BSD 3-Clause "New" or "Revised" License
196 stars 54 forks source link

Gif animated handling bug #45

Open xvolte opened 3 years ago

xvolte commented 3 years ago

Hello,

When using Gif animated images, the processors remove the "animated" part of the gif and only resize the first frame of the gif.

Is there a way not to loose animated content ?

Thanks in advance,

vstoykov commented 3 years ago

Hello,

I've never used animated gifs with pilkit and with PIL/Pillow in general and I'm not sure how they are handled there.

If you have some time to investigate it and prepare a patch I will be very glad.

vstoykov commented 3 years ago

After some research I found this stackoverflow thread where some solution is given. It needs to be adapted for pilkit. There need to be a generic way of doing this for all processors instead copy pasting the same logic for every processor.