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
Overlay convert
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Overlay convert
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");
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");