Set draw text to the right
Posted: 2014-07-29T08:23:16-07:00
Hey guys.
I am new to image magick.
I am trying to create an image with some text aligned left some aligned right.
This is the code I have to create the image
Then I add the text.
The ones on the left are easy. I just do (in the convert command);
-pointsize 17 -draw "text 5,50 'Text text'" \
But I am having a hard time with the ones on the right.
I don't know the size of the text beforehand so how can I properly align the text to the right? (I need to align it vertically as well)
Thanks
EDIT:
Nevermind. The -gravity option was what I wanted.
I am new to image magick.
I am trying to create an image with some text aligned left some aligned right.
This is the code I have to create the image
Code: Select all
convert -fill black -size 450x150 xc:white \
The ones on the left are easy. I just do (in the convert command);
-pointsize 17 -draw "text 5,50 'Text text'" \
But I am having a hard time with the ones on the right.
I don't know the size of the text beforehand so how can I properly align the text to the right? (I need to align it vertically as well)
Thanks
EDIT:
Nevermind. The -gravity option was what I wanted.