Page 1 of 1

Overlay convert

Posted: 2013-11-27T07:13:29-07:00
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

Re: Overlay convert

Posted: 2013-11-27T11:04:45-07:00
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");