Page 1 of 1

Hoo use convert composite with multiply -gravity center

Posted: 2014-11-29T14:01:14-07:00
by mostafanastary
Hi, i need use this code:

exec("convert ".$newfile1." 1.jpg -compose Lighten_Intensity -composite -quality 100 ".$result_image);

but i need to use (( multiply -gravity center -geometry +0+0 )) with that.

is there any solution?
thank you

Re: Hoo use convert composite with multiply -gravity center

Posted: 2014-11-29T15:35:56-07:00
by fmw42
try

exec("convert ".$newfile1." 1.jpg -gravity center -compose Lighten_Intensity -composite -quality 100 ".$result_image);

-geometery +0+0 is not needed as that is the default

If that does not work, upload your input images and the output image to some free hosting service and put the URLs here so we can download the test ourselves.

Also what version of Imagemagick and what platform.

Please read viewtopic.php?f=1&t=9620

Re: Hoo use convert composite with multiply -gravity center

Posted: 2014-11-29T16:23:42-07:00
by mostafanastary
Hi dear fred,

I change my command line to:

exec("composite multiply -gravity center -geometry +0+0 -compose Over 1.png 2.png -quality 100 ".$result_image);

and work well.

thank you for reply.

Re: Hoo use convert composite with multiply -gravity center

Posted: 2014-11-29T19:46:30-07:00
by fmw42
I would recommend you use the convert syntax. The composite syntax is shortly to be deprecated. The convert syntax has more functionality