Page 1 of 1

possible bug file size of each frame of gif animation IM 6.9.0.4 Q16

Posted: 2015-02-05T18:10:22-07:00
by fmw42
How does one go about listing the actual size of each frame of a gif animation.

Here is an animation I made:

http://www.fmwconcepts.com/misc_tests/a ... tmp1_6.gif

If I use the following to get the animation frame size,

Code: Select all

identify -format "%f[%s] %m %b %[size] %wx%h %g %T \n" tmp1_6.gif
I get the following:

Code: Select all

tmp1_6.gif[0] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[1] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[2] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[3] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[4] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[5] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[6] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[7] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[8] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[9] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[10] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[11] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[12] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[13] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[14] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[15] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[16] GIF 0B 490KB 240x160 240x160+0+0 20 
tmp1_6.gif[17] GIF 490KB 490KB 240x160 240x160+0+0 20 
%b shows 0 Bytes for every frame, but the last, which shows 490 KB, for which I assume this is the whole animation size.

%[size] shows 490 KB for all frames

But if I do

Code: Select all

convert tmp1_6.gif[0] gif:- | identify -format "%f[%s] %m %b %[size] %wx%h %g %T \n" -
I get:

Code: Select all

-[0] GIF 31.2KB 31.2KB 240x160 240x160+0+0 20 
which shows 31.2 KB for both %b and %[size], which I assume is the actual frame size.

Is there some other string format that shows this without the pipe? and why does %b show 0 for all but the last frame?