Displace inside Clone

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
motumbo
Posts: 16
Joined: 2011-07-26T12:56:12-07:00
Authentication code: 8675308

Displace inside Clone

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Displace inside Clone

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