Overlay convert

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
omercitir
Posts: 1
Joined: 2013-11-27T07:06:47-07:00
Authentication code: 6789

Overlay convert

Post by omercitir »

hi friends, my server can not perform the following operation please help

exec("convert 1.png -alpha set -gravity center -extent 500x500 2.png ( -clone 0,1 -alpha set Opaque -compose Hardlight -composite ) -delete 0 -compose In -composite PNG32:2.png");

operating system: CentOS 6.4 x86_64 standard - cPanel
Imagick Version: ImageMagick 6.5.4-7 2012-05-07 Q16
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Overlay convert

Post by fmw42 »

If 1.png and 2.png are input images, then just put \ before parens

exec("convert 1.png -alpha set -gravity center -extent 500x500 2.png \( -clone 0,1 -alpha set Opaque -compose Hardlight -composite \) -delete 0 -compose In -composite PNG32:2.png");
Post Reply