Gif resize working but with error (for some images), why?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Gif resize working but with error (for some images), why?

Post by anthony »

-deconstuct was NEVER a good optimization method for GIF images.
The new method that does work is -layers Optimize

See IM Example pages for all the details.

BOTH however can produce that message, as it means one of the frame did not need to overlay anything onto the results of the previous frames disposed image to generate the new frame. That is the frame overlay is ZERO in size. In that case IM gives a warning, and uses a single transparent pixel frame as a place holder in the animation sequence, so that disposal and time delays remain correct.

The animation will still have the correct result (according to what you requested, which may not be what you wanted!!!) The warning was just that a warning, it is not fatal, and the result is right.

You can tell IM to shut-up about such warnings, by setting a -quiet operational setting before that operation.

See IM Examples,
http://imagemagick.org/Usage/anim_basics/#deconstruct
http://imagemagick.org/Usage/anim_opt/#opt_frame
for details.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Gif resize working but with error (for some images), why?

Post by anthony »

PS: Read the image BEFORE trying to perform image operatins on it. If you don't the operations may not be in the order you expect!!!

See IM Examples, Basics for details as to why this is so.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Gif resize working but with error (for some images), why?

Post by anthony »

As for resizing animations --- VERY difficult!!!!

see IM examples, Animations Modifications, Resize
http://imagemagick.org/Usage/anim_mods/#resize


I think you are getting the idea ;-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply