Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Post by fmw42 »

IM 6.7.9.0 Q16 Snow Leopard

Is this expected behavior for -coalesce? Without -coalesce I get a meaningful result. With coalesce the result it totally transparent.

Image
Image
Image


convert -size 128x128 xc: logo3.jpg lena2.jpg zelda3.jpg miff:- |\
convert - -delete 0 -evaluate-sequence mean show:

convert -size 128x128 xc: logo3.jpg lena2.jpg zelda3.jpg miff:- |\
convert - -coalesce -delete 0 -evaluate-sequence mean show:
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Post by magick »

We'll take a look @ the problem. In the mean-time add -alpha off to your command line.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Post by fmw42 »

magick wrote:We'll take a look @ the problem. In the mean-time add -alpha off to your command line.

Thanks. I just removed the -coalesce in my script and it works fine. But I wanted to be sure that this is what you expect when using -coalesce.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Post by anthony »

As you have not set disposals, and all later frames are opaque -coalesce should do nothing. I'd say something is haywire in the low level comparison functions due to alpha changes.

I have no time to look at it though.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is this expected behavior for -coalesce IM 6.7.9.0 Q16

Post by fmw42 »

anthony wrote:As you have not set disposals, and all later frames are opaque -coalesce should do nothing. I'd say something is haywire in the low level comparison functions due to alpha changes.

I have no time to look at it though.
I believe Magick made a change already.


2012-08-16 6.7.9-1 Cristy <quetzlzacatenango@image...>
...
Don't add matte channel for -coalesce if input images don't have one.
Post Reply