The Composite command does not work.

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

The Composite command does not work.

Post by Darknet »

I like to process the comoposite Command in PHP with shell_exec: But these dont work

/usr/bin/convert end1.jpg -composite pen.png -gravity center.

What's wrong?
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: The Composite command does not work.

Post by glennrp »

You didn't specify a destination image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: The Composite command does not work.

Post by fmw42 »

Correct syntax should be

convert backgroundimage overlayimage -gravity center -composite resultimage

see
http://www.imagemagick.org/Usage/compose/#compose
Post Reply