Skip to content

Turn off GIF animation #665

@dominikfiala

Description

@dominikfiala

Is there a way to turn off animation of a GIF picture in imageflow? Or is this out of scope of imageflow?

I searched the docs and issues, but didnt find any related options.

Also the size of resized animated GIF is huge. I resized 740 KB 1000x230 px GIF to 800x184 and the resulting size is 29 MB.

After brief investigation it seems that the orignal GIF is stored as the differences between the frames of the animation, but after resizing with imageflow_tool, the result is full size frames.

See the result of imagick identify command (abbrevated):

identify orig.gif
orig.gif[0] GIF 1000x230 1000x230+0+0 8-bit sRGB 256c 0.020u 0:00.006
orig.gif[1] GIF 238x184 1000x230+356+18 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[2] GIF 262x224 1000x230+355+0 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[3] GIF 263x224 1000x230+354+0 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[4] GIF 240x184 1000x230+354+18 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[5] GIF 293x184 1000x230+355+18 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[6] GIF 295x186 1000x230+356+17 8-bit sRGB 256c 0.020u 0:00.009
orig.gif[7] GIF 294x186 1000x230+357+17 8-bit sRGB 256c 0.020u 0:00.009
...
identify resized.gif
res.gif[0] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.092
res.gif[1] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.093
res.gif[2] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.093
res.gif[3] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.092
res.gif[4] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.092
res.gif[5] GIF 800x184 800x184+0+0 8-bit sRGB 256c 0.020u 0:00.092
...

The image tested:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions