Thomas Werner on  wrote...
| hi all,
|
| i need to build an image step by step with the append feature to
| center the text in each part of the image. but in the "second" white
| part of the image imagemagick draws the text "Foo" in black one tooe.
| how can i avoid in the example below, that imagemagick put the text
| Foo in the left black box, and all texts stay centered in its own
| part of the image.
|
| convert -size 140x80 xc:black -fill grey -gravity NorthWest -draw
| "gravity Center text 0,0 'Foo'" -size 140x80 xc:white -fill red -draw
| "gravity Center text 0,0 'Blah'" +append png:1.png
|
| thx a lot and greetings from germany, tom

Sorry for the long delay in answering. I have been on a month long tour
of Europe with my wife.  Very busy time.

Draw will as most image operators, draw on ALL the images in the memory
at the time given.  So Blah gets draw into the two seperate images.

You need to work on the two images in seperate image sequences, and that
means parenthesis (or seperate commands in IM version 5)

Eg:
   convert -size 140x80 xc:black -fill grey -gravity NorthWest \
                        -draw "gravity Center text 0,0 'Foo'" \
         \( -size 140x80 xc:white -fill red \
                        -draw "gravity Center text 0,0 'Blah'" \) \
         +append  2.png

For more info see...
  ImageMagick Basic Usage, Image Sequences
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/basics/#image_seq


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
      Oh, I'm a Sysprog and I'm OK
      I work all night and play all day.
      I knock back Cokes, I skip my lunch,
      I love to program.
 -----------------------------------------------------------------------------
     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