as the title suggest, i want to draw a text with a border where each, the text color + transparency and the border color + transparency can be adjusted independently.
first attempt:
Code: Select all
convert -size 500x500 xc:transparent -gravity center -font Impact -pointsize 60 -fill "rgba(255,255,255,0.58)" -stroke "rgba(0,0,0,1)" -strokewidth 4.000 -annotate +0+0 "TESTTEXT" -trim test.png
So my idea was to create a text for the border only, without "fill" and add an other text without the border afterwards, like this:
Code: Select all
convert -size 500x500 xc:transparent -gravity center -font Impact -pointsize 60 -fill none -stroke "rgba(0,0,0,1)" -strokewidth 4.000 -annotate +0+0 "TESTTEXT" -font Impact -pointsize 60 -fill "rgba(255,255,255,0.58)" -stroke none -strokewidth 4.000 -annotate +0+0 "lkhnl" -trim test.png
So my next idea would be to cut the actual text from the border "layer" first, so the overlapping border part would be removed.
Could someone give me a hint how to do that? Couldn't find anything about "cutting text from an image"
Other suggestions would be welcomed as well.
Regards