system — 2012-01-04T18:37:21-05:00 — #1
aussiejohn — 2012-01-04T18:58:25-05:00 — #2
Reduce the file size?
AFAIK you can't do that with JS. Maybe with server side JS, but it would still likely use a 3rd party application (e.g. https://github.com/rsms/node-imagemagick)
Traditionally this is something you would leave to the server to process. (But then you might incur data loss and break the animated GIF, so that's something to be aware of too)
ralphm — 2012-01-04T18:58:31-05:00 — #3
What do you mean by 'reduce'? You can set with width and height in the HTML or via CSS if you want it to display at a smaller size.
allanp — 2012-01-04T20:37:18-05:00 — #4
If you mean reduce the number of frames, you can do it by loading the gif into Adobe ImageReady and reworking the layers. You can also use the same technique to reduce the file size or speed it up or slow it down.
system — 2012-01-04T21:20:57-05:00 — #5
I meant the file size. I shank the GIF significantly, but not enough. I thought maybe JS could do something about roughly 150K.
aussiejohn — 2012-01-04T21:23:50-05:00 — #6
Do it in Canvas
system — 2012-01-04T22:49:55-05:00 — #7
Do it in Canvas ? There is almost 200 frames.
aussiejohn — 2012-01-04T23:22:16-05:00 — #8
200 frames ouch.
If we think of a standard 100x100px GIF image, it might end up at 3kb or so, depending on the amount of colours and number of gradients, so 200 frames at 150k is looking pretty good IMHO.
TBH, I've never been a big fan of GIF for complex or lengthy animations, I'd probably opt for Flash or Canvas (and that probably depends heavily on what the animation is). (Or make it a movie :))
system — 2012-01-05T00:34:14-05:00 — #9
I don't own flash, problem is I don't want someone to disable flash and then they can't see what they are suppose to see. The GIF file size bumped up to 285K, solid. Isn't there a really smart GIF algorithm out there, that can cut that down to atleast 150K if that's all I can squeeze out of it. I've played with it in Photoshop trying and trying to no end.
ralphm — 2012-01-05T00:43:05-05:00 — #10
Usually you can get the file size lower by using Fireworks. Or have you tried reducing the size of the original slides?
system — 2012-01-05T07:34:46-05:00 — #11
Or have you tried reducing the size of the original slides?
You mean each frame ? Isn't that what I did with the original GIF ?
ralphm — 2012-01-05T07:37:55-05:00 — #12
I have no idea. You tell me!
If you used 200 gif images, did you optimize them before merging them all into one animated file? That's what I mean. Do you have Fireworks?
system — 2012-01-05T16:59:05-05:00 — #13
I don't have fireworks. The file was converted from another media format to GIF, it was not originally created as a GIF in frames.