Resizing animated GIF's ...

See all posts Reply

Resizing animated GIF's ... new!
by Bob Brown, 11 years, 3 months ago
Hi All,

A rather unusual but understandable bug report came across my desk this morning - "why doesn't our animated GIF animate?". Turns out it was a resized version of the original and sure enough it doesn't animate.

I'd like to fix this in the class.upload.php itself but I'm also aware that it could be a world of hurt to implement. Does anyone have something underway that could do this?

If I need to do it I will most probably end up calling another tool instead of class.upload.php.

Cheers,

- Bob -Reply
Re: Resizing animated GIF's ... new!
by colin, 11 years, 3 months ago
Structurally speaking, the class cannot deal with animated GIFs. I can maybe detect the animated GIFs, but the class cannot apply graphic manipulation on each layer of the animated GIF.

So for now, the class can only upload animated GIFs as regular files, or do graphic processing on the GIF image, but removing the animation.Reply
Re: Resizing animated GIF's ... new!
by Bob Brown, 11 years, 3 months ago
That's fine - I did some command line testing with the convert program (part of ImageMagick).

The original file is 2.1MB, 400x400px.
A resized version (to 100px by 100px) is 678kb
Further crunching can get it down to 320K but it's starting to look pretty bad.

The effort/result ratio is too high for my purposes.

Cheers,

- Bob -

ps. Can you increase the font size on the forum post form (it's 0.8em).
pps. Did you know that replies to topics don't appear in the RSS feed? Can that be changed?Reply