Page 1 of 1

[RESOLVED] possible bug -poly IM 6.8.0.6 Q16

Posted: 2012-11-25T15:44:07-07:00
by fmw42
IM 6.8.0.6 Q16 Mac OSX Snow Leopard

The following command (simplified from my script) does not seem to work -- the result is all white:

fp=`convert xc: -format "%[fx:1/7]" info:`
fm=`convert xc: -format "%[fx:-1/7]" info:`
convert zelda3.jpg -duplicate 10 -poly "$fp,1 $fp,1 $fp,1 $pf,1 $fp,1 $fp,1 $fp,1 $fp,1 $fp,1 $fm,1 $fm,1" show:


It was meant to replace the following that does work fine:

convert zelda3.jpg -duplicate 10 -fx "(u[0]+u[1]+u[2]+u[3]+u[4]+u[5]+u[6]+u[7]+u[8]-u[9]-u[10])/7" show:



On the other hand -- this works fine:
convert zelda3.jpg -duplicate 10 -evaluate multiply $fp -poly "1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 -1,1 -1,1" show:


Am I misunderstanding something about using variables as arguments with -poly?

Re: possible bug -poly IM 6.8.0.6 Q16

Posted: 2012-11-25T16:43:16-07:00
by magick
Check your -poly argument carefully. You should find your mistake within just a few seconds.

Re: possible bug -poly IM 6.8.0.6 Q16

Posted: 2012-11-25T16:48:09-07:00
by fmw42
magick wrote:Check your -poly argument carefully. You should find your mistake within just a few seconds.

Got it! I looked at it several times before reporting. But my fingers must have dislexia. Thanks. Sorry for the false alarm.