potential bug -evaluate-sequence min

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

potential bug -evaluate-sequence min

Post by fmw42 »

IM 6.6.0-4 Q16 Mac OSX Tiger

I have tested the new -evaluate-sequence on multiple image (up to 5) for max, min and mean. The first two work but it appears that min is not working correctly.

Two Inputs:

Image

Image


convert checks.jpg lena2.jpg -evaluate-sequence max tmp_max.jpg

Image


convert checks.jpg lena2.jpg -evaluate-sequence mean tmp_mean.jpg

Image


convert checks.jpg lena2.jpg -evaluate-sequence min tmp_min.jpg

Image

I would have expected the dark squares from the checks image alternating with squares from the lena image.

P.S. I see that -average has been removed from the options page, although it still works (deprecated with -evaluate-sequence mean). Perhaps a note in the -evaluate-sequence would be in order about it being deprecated. I have 4 scripts that I will need to modify, so that whenever -average disappears totally, I will have -evaluste-sequence in place. This is not a big deal, but others may need to know. I can make the change on the options page, if you want me to. Let me know.

It might also be nice to have

convert -list evaluate-sequence

list those evaluate options that make sense to use with -evaluate-sequence and are implemented, as I am not sure all the evaluate options make sense in this new function.

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

Re: potential bug -evaluate-sequence min

Post by magick »

We can reproduce the problem you posted and have a patch. Look for it in the next point release of ImageMagick.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: potential bug -evaluate-sequence min

Post by fmw42 »

magick wrote:We can reproduce the problem you posted and have a patch. Look for it in the next point release of ImageMagick.
Yes, this seems to be working now and producing a correct result:

convert checks.jpg lena2.jpg -evaluate-sequence min tmp_min2.jpg

Image
Post Reply