[magick-users] Re: ImageMagick
Anthony Thyssen
anthony at griffith.edu.au
Sat Feb 24 23:39:43 CST 2007
"Albert Wu" on wrote...
| Thanks for your ImageMagick tutorial, but I have a question.
|
| Is it possible for me to combine the following two commands into one
| command?
|
| composite -geometry +42+0 -rotate 180 cropped.bmp template.bmp preview.bmp
| composite -geometry +300+180 cropped.bmp preview.bmp preview.bmp
|
| Basically, I want to composite -geometry twice on an image before outputting
| it.
|
YES. Composite is a special command to compose only two images.
http://www.imagemagick.org/Usage/basics/#composite
However convert is a general on and it also can do image composition,
and repeat it (and other image processing) as many times as needed.
see IM Examples, Mosaics of Multiple Images
http://www.imagemagick.org/Usage/mosaics/
this whole section is on overlaying in multiple image in various ways,
including...
composite (exactly as you have, though repeating the output image)
convert composition
draw image compositions
mosaics onto a expaning canvas
flatten onto a fixed sized canvas
All five methods will do what you have requested. Both with -geometry
(whcih is gravity effected) or with -page (which isn't gravity
effected).
Enjoy.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
There is nothing more constant, as change!
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list