I'm simply trying to draw white text onto a transparent background and save it as a transparent PNG but it's not working as expected. Instead of being pure white and semi-transparent, it has black artifacts, as if the text was written on black, and then cut out.
My Command:
Code: Select all
convert -size 203x29 xc:none -font ACaslonPro-Semibold.otf -pointsize 15 -draw " fill "#FFFFFF" text 26,19 'Home'" output.png
If you look at the examples below, you can see that when I draw the text over a black background (fig. C), it looks nice and smooth. But if I draw it over a transparent background, it comes out jagged (fig A. and B). The root of the problem appears to me when you place the transparent image over a white background with photoshop (fig. D). You can see, rather than semi-transparent WHITE edges, it has semi-transparent BLACK edges.
What am I doing wrong?
Examples of what is happening: