Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
convert -size 320x100 xc:black -gravity center -stroke black -fill white -strokewidth 1 -font Arial-Bold -pointsize 40 -annotate +0+0 "This is a bridge" output.png
Here it is zoomed in to the g in bridge:
Does anyone know what causes this kind of bleed-through?
convert -size 320x100 xc:black -gravity center -stroke white -fill white -strokewidth 1 -font Arial-Bold -pointsize 40 -annotate +0+0 "This is a bridge" output.png
or add +antialias to the command without the stroke and strokewidth
This imagemagick version is whatever comes on the latest ubuntu LTS; that's what our servers are running. It would be difficult to upgrade our servers to a nonstandard version, but it's something I can look into if it fixes the issue. (can you reproduce it on the latest version?)
I'm not sure I understand your advice to leave off the stroke. In my actual program, this text will be rendered overtop of an arbitrary photograph instead of a black background, so I want to have an outline around the text to prevent it from blending into whatever features might be in that area of the photograph.
convert -size 320x100 xc:none -gravity center -stroke black -fill white -strokewidth 1 -font Arial-Bold -pointsize 40 +antialias -annotate +0+0 "This is a bridge" output.png
The issue is very visible at normal size. I notice that some png rendering engines expose it to a lesser or greater extent. Firefox's seems to be pretty good; imagemagick's seems to be particularly bad.
Here I've opened the image with the 'display' command and took a screenshot of the results. The result seems pretty noticeable to me. Do you see it here?