possible bug -evaluate-sequence multiply

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 -evaluate-sequence multiply

Post by fmw42 »

IM 6.7.2.9 Q16 Mac OSX Tiger.

This is not urgent as there is an alternate way to do this with -compose multiply -flatten, but I thought I would report it anyway.

convert -size 100x100 xc:gray gray.png
convert gray.png gray.png -evaluate-sequence multiply gray2.png

I would expect the result to be at graylevel 25% (.5x.5x100) from two gray images of graylevel 50%. But the result is full white. There are no error messages of any kind, esp, about multiply not being a valid option to -evaluate-sequence

Fred
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -evaluate-sequence multiply

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.7.2-10 Beta available by sometime tomorrow. Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: possible bug -evaluate-sequence multiply

Post by anthony »

Also there is no -list EvaluateSequence to list just what methods are available to that option.
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: possible bug -evaluate-sequence multiply

Post by fmw42 »

Did this ever get implemented? The following does not seem to finish and does not issue an error?

convert -size 100x100 xc:gray gray.png
convert gray.png gray.png -evaluate-sequence multiply gray2.png

IM 6.7.3.1 Q16 Mac OSX Tiger


When/if it gets implemented, will it multiply the existing alpha channels in the images, if using -channel rgba -alpha on?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -evaluate-sequence multiply

Post by magick »

Curious, the command works for ImageMagick 7.0.0 but hangs in 6.7.3. We'll investigate and get a patch into 6.7.3 in the next few days.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -evaluate-sequence multiply

Post by fmw42 »

Thanks.
Post Reply