How can I paste pictures from command line?

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
bensto

How can I paste pictures from command line?

Post by bensto »

Assume I have a couple of independent pictures (.e.g.*.jpg or *.png).
I want to paste them (one below the other) into one target picture.

How can I do this with IM?

Ben
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How can I paste pictures from command line?

Post by Bonzo »

Code: Select all

convert -background none -gravity Center image1.jpg image2.png -append vertical.png
bensto

Re: How can I paste pictures from command line?

Post by bensto »

Bonzo wrote:

Code: Select all

convert -background none -gravity Center image1.jpg image2.png -append vertical.png
Ok. Thank you.

But hwo would the command look like if I want to append/paste the pictures from left to right and not one below the other?

Ben
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How can I paste pictures from command line?

Post by fmw42 »

use +append instead of -append

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