Page 1 of 1

Displace inside Clone

Posted: 2012-11-19T16:41:30-07:00
by motumbo
I'm getting "unrecognized option -displace" when trying to use "-displace" inside clone:

convert over.png dscp_01.png \
\( art.jpg -thumbnail 600x600 -alpha on \) \
\( -clone 1 -clone 2 -displace 0x40 \) \
\( -clone 3 -clone 0 -gravity center -compose over -composite \) \
-delete 1,2,3 -compose over -composite outPro.jpg

Full Error: convert: unrecognized option `-displace' @ convert.c/ConvertImageCommand/1213.

Am I missing anything here?

Re: Displace inside Clone

Posted: 2012-11-19T18:31:20-07:00
by fmw42
-displace was originally only used with composite and not convert. see

http://www.imagemagick.org/Usage/mappin ... e_displace
http://www.imagemagick.org/script/comma ... p#displace


You can use it now in convert but the syntax is different. See near the bottom

http://www.imagemagick.org/script/compose.php