Add text on canvas of certain size
Posted: 2013-06-21T08:44:38-07:00
Hi,
What i am trying to do:
1) I have a text with pointsize 30 and then i resize it. For example:
The resulting image is 280x50. And of-course, the text is a bit blurry.
Now i would like to have the same text with that size, but then sharp.
There is a slight difference in font size, however that is not my main concern.
How do i merge above two commands in 1 convert?
I hoped something like:
But it does not give me the same canvas size...
Any suggestions?
What i am trying to do:
1) I have a text with pointsize 30 and then i resize it. For example:
Code: Select all
convert -font Arial -pointsize 30 label:"Imagemagick" -resize 140% out.png
Now i would like to have the same text with that size, but then sharp.
Code: Select all
convert -font Arial -gravity center -size 280x label:"Imagemagick" out2.png
How do i merge above two commands in 1 convert?
I hoped something like:
Code: Select all
convert -respect-parentheses ( -font arial -pointsize 30 label:"Imagemagick" -resize 140% ) ( -size %wx -font arial -gravity center label:"Imagemagick" ) -delete 0 out.png
Any suggestions?