IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

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
jverne
Posts: 11
Joined: 2011-07-21T05:26:15-07:00
Authentication code: 8675308

IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

Post by jverne »

The frame doubling optimization for animated GIFs doesn't seem to be working on IM 6.7.1 Q16 / Win XP. For instance, when I try to use:

Code: Select all

convert moving_hole.gif  -layers OptimizePlus   moving_hole_oplus.gif


on the image moving_hole.gif, the image is here:

http://www.imagemagick.org/Usage/anim_o ... g_hole.gif

no optimization is produced.

The following code doesn't seem to be working also:

Code: Select all

  convert moving_hole.gif  \( -clone 0--1 -set delay 0 \) \
          +delete -insert 2 -insert 1 -insert 0 \
          -layers OptimizeFrame  moving_hole_double.gif
The following code "does":

Code: Select all

  convert moving_hole.gif  \( -clone 0--1 -set delay 0 \) \
          +delete -insert 2 -insert 1 -insert 0 \
          -layers Optimize  moving_hole_double.gif
but the optimized image is not as small as the one on the manual:

http://www.imagemagick.org/Usage/anim_opt/

Am I missing some kind of configuration?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

Post by anthony »

It should be working... But you are right it is no longer working for linux either.

The question then becomes what changed to break it!

I have a feeling the lower level test functions are breaking, rather that optimizeplus itself.

Shame I don't have time to look into it right now, but I'll put it on my list.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jverne
Posts: 11
Joined: 2011-07-21T05:26:15-07:00
Authentication code: 8675308

Re: IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

Post by jverne »

Optimizeframe doesn't seem to be working as advertised either, as the following command:

Code: Select all

convert  canvas_prev.gif -coalesce  -layers OptimizeFrame  optframe.gif
for the example provided at:

http://www.imagemagick.org/Usage/anim_opt/

produces a smaller image, but not as small as optframe.gif shown in the previous link.

Could it be that OptimizeFrame is broken?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

Post by anthony »

Internally they are the same function. Just a flag is passed for a extra optimization test.

OptimizePlus tests to see if it can reduce the total number of pixels by separating frame deletion from the next frame overlay, as discussed on the IM examples page.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jverne
Posts: 11
Joined: 2011-07-21T05:26:15-07:00
Authentication code: 8675308

Re: IM 6.7.1 Q16 / Win XP / convert -layers OptimizePlus

Post by jverne »

What is the status of this bug?
Post Reply