class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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.
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
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
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 -
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.
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?