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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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?
Post Reply