-annotate ignores y coordinate when more than 1

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
alexB

-annotate ignores y coordinate when more than 1

Post by alexB »

hi there,

when having multiple -annotates like in the code below, only the first +x+y pair gets parsed correctly. all the following ones do the x coordinate perfectly right but never the y coordinate, it's always 0 (zero). i tried all kinds of combinations w/ + w/o gravity and couldn't find anything really here in the forum or the web...

any idea / alternative / workaround would be greatly appreciated and thanks in advance,
alex

convert -monochrome -background none -density 200x200
-gravity NorthWest -font arial -pointsize 30 -fill black '
-annotate +500+400 "xxxxxxxxxxxxxxxxxxxxxxxx"
-font arial -pointsize 30 -fill black
-annotate +260+230 "yyyyyyyyyyyyyyyyyyyyyy"
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: -annotate ignores y coordinate when more than 1

Post by Bonzo »

What version are you using ?

This worked for me using 6.3.7

Code: Select all

convert -size 1000x1000 xc:white -monochrome -background none -density 200x200 -gravity NorthWest -font arial -pointsize 30 -fill black -annotate +500+400 "xxxxxxxxxxxxxxxxxxxxxxxx" -font arial -pointsize 30 -fill black -annotate +260+230 "yyyyyyyyyyyyyyyyyyyyyy" output.png
alexB

Re: -annotate ignores y coordinate when more than 1

Post by alexB »

really? i have 6.3.6 on windows... i will update and let you know.

thanks
Post Reply