Re: Adding multiple annotation to an image with one command using "-gravity"

Anthony Thyssen <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20100510110819.655a0ff0@wraith>
On Sun, 9 May 2010 18:40:52 +0300
[email protected] wrote:

| Hello.
| 
| I am trying endlessly to add multiple annotations to an image but I
| fail miserably.
| 
| 
| What I want to do:
| 
| Place three texts in three different places on the image using just one command.
| 
| 
| What I type:
| 
| convert image.png -pointsize 40 -fill white -gravity center -annotate
| +100+150 MAINTITLE -gravity center -annotate +200+250 Text -gravity
| center -annotate +300+350 logo image-with-text.png
| 
| 
| What happens:
| 
| The first text ("MAINTITLE") is printed where I tell it to.
| However, the two other texts are printed as if the "+250" and "+350"
| parts are totally ignored.
| The result is a file where "Text" and "logo" is next to each other on
| the same line.
| 
| 
| I know I am doing something wrong but what is it?
| 
| Thanks!
| 
| P.
| 
| 
| PS: I have tried RTFM, using parentheses, using "-draw" but the same
| thing happens.
| _______________________________________________

The real problem is that -gravity not only defines 'justification'
but also 'positioning'.    This is a real pain!




  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
   The Macintosh Principle :-
               Build a system that even a fool can use,
                 and only a fool will want to use it.
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.cit.griffith.edu.au/~anthony/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.