"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 )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
              There is nothing more constant, as change!
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to