Label with stroke vs draw text with stroke
Posted: 2016-06-27T05:23:39-07:00
Hey,
I'm trying to achieve the same visual output for label as the one I get with draw text.
Here is the command for the label
Here is the output for label
----------
Here is the command for the draw text
Here is the output for draw text
The main reason that I want it is because I need to create a canvas with custom size for each char and the stroke not always aligned right with the draw text approach.
Thank you
I'm trying to achieve the same visual output for label as the one I get with draw text.
Here is the command for the label
Code: Select all
convert -background none -font ./assets/impact.ttf -pointsize 72 -fill white -stroke black -strokewidth 8 label:R -trim label.png
----------
Here is the command for the draw text
Code: Select all
convert -background none -size 150x150 canvas:none -font ./assets/impact.ttf -pointsize 72 -fill black -stroke black -strokewidth 12 -gravity Center -draw "text 0,0 'R'" -font ./assets/impact.ttf -pointsize 68 -fill white -stroke none -gravity Center -draw "text 0,0 'R'" -trim draw.png
The main reason that I want it is because I need to create a canvas with custom size for each char and the stroke not always aligned right with the draw text approach.
Thank you