[RESOLVED] possible bug -poly IM 6.8.0.6 Q16
Posted: 2012-11-25T15:44:07-07:00
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?
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?