Not quite programming but... Shrink size of animated GIF ?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#16 Post by sunburnt »

I understand what you mean, even if your terminology may not be correct.

Delta encodes the changed parts frame to frame starting from a full key frame.

For my icon changing parts are just the flames which is 1/3 to 1/2 of the icon.
So as I said, if the color info is not there for the static parts then a smaller size.

Don`t know the icon format setup, I`d think a color for each pixel in a grid.
So then it`d be hard to see how a Delta encoding could be applied to it.
However the icon`s format may allow for many other possible methods.

User avatar
GatorDog
Posts: 138
Joined: Tue 12 Sep 2006, 16:43

#17 Post by GatorDog »

Hi Sunburnt,

I grabbed you existing gif avatar. Googled a little and played with Imagemagick.
This converts the .gif to seperate .bmp frames. (.bmp doesn't support comments) ;)

Code: Select all

convert sunburnt.gif -scene 1 +adjoin  frame_%02d.bmp
This puts the frames back together.

Code: Select all

convert frame_*.bmp -depth 16 -colors 8 -delay 100 -loop 0 new.gif
Original: 6119B Converted: 3728B

Removing the comments didn't reduce size that much, but if you were really close
it might be the difference in coming in under the wire.

In a blindfold test, I don't think I could tell the difference between the two gifs. :P
rod

Also, "identify -verbose filename.gif" will give all sorts of info. Like the timing dalay,
show the comments, number of colors, etc...
Attachments
new.gif
(3.64 KiB) Downloaded 196 times

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#18 Post by sunburnt »

Thanks GatorDog; I didn`t think the comment took much space.

The gif is pretty good, but it`d be nice if it were bigger.

Only a different data encoding format will shrink the size now I think.

There may be other animated icon formats that this forum will accept.???

Post Reply