Hoo use convert composite with multiply -gravity center

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
mostafanastary
Posts: 44
Joined: 2014-11-28T16:19:41-07:00
Authentication code: 6789

Hoo use convert composite with multiply -gravity center

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

Re: Hoo use convert composite with multiply -gravity center

Post 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
mostafanastary
Posts: 44
Joined: 2014-11-28T16:19:41-07:00
Authentication code: 6789

Re: Hoo use convert composite with multiply -gravity center

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

Re: Hoo use convert composite with multiply -gravity center

Post by fmw42 »

I would recommend you use the convert syntax. The composite syntax is shortly to be deprecated. The convert syntax has more functionality
Post Reply