[RESOLVED] possible bug -poly IM 6.8.0.6 Q16

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

[RESOLVED] possible bug -poly IM 6.8.0.6 Q16

Post 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?
Last edited by fmw42 on 2012-11-25T17:14:10-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -poly IM 6.8.0.6 Q16

Post by magick »

Check your -poly argument carefully. You should find your mistake within just a few seconds.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -poly IM 6.8.0.6 Q16

Post 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.
Post Reply