Page 1 of 1

Possible to connect utilities?

Posted: 2007-07-12T19:58:13-07:00
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

Re: Possible to connect utilities?

Posted: 2007-07-12T22:08:26-07:00
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'.