Possible to connect utilities?

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
Bruce Anderson

Possible to connect utilities?

Post by Bruce Anderson »

Hi to the forum.

I have a need to compose an image, then resize it. Can that be done in one command?
I would prefer not to have to use perl etc.

What I need to do is combine these:

convert -resize 1280x768 CIMG3060.JPG
composite -geometry +50+50 sample.png CIMG3060.JPG composite.jpg

Any assistance greatly appreciated!

Bruce
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Possible to connect utilities?

Post by anthony »

Yes. This was what IM version 6 is all about...


convert CIMG3060.JPG -resize 1280x768 \
sample.png -geometry +50+50 -composite \
composite.jpg

See IM Examples for lots more examples.
Especially look at 'Alpha Composition'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply