Page 1 of 1

potential bug -evaluate-sequence min

Posted: 2010-03-08T12:22:36-07:00
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

Re: potential bug -evaluate-sequence min

Posted: 2010-03-08T13:17:17-07:00
by magick
We can reproduce the problem you posted and have a patch. Look for it in the next point release of ImageMagick.

Re: potential bug -evaluate-sequence min

Posted: 2010-03-11T20:20:53-07:00
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