Page 1 of 1
Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T03:32:55-07:00
by badabou
Hi,
I have a problem when a text is generated with an stroke.
The command :
Code: Select all
convert -background "#ff0000" -fill white -strokewidth 3 -stroke "#00ff00" -size 500x100 caption:"A small test" text.png
We can see that the result is not clear :
Here is the same image with a zoom :
We see that the edges of text are not clean.
Looks like there was like a black shadow.
I used the last Imagemagick version.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T04:30:51-07:00
by snibgo
That is anti-aliasing. If you don't want it, turn it off:
Code: Select all
convert -background "#ff0000" -fill white -strokewidth 3 -stroke "#00ff00" -size 500x100 +antialias caption:"A small test" text.png
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T06:14:21-07:00
by badabou
There is a bug in Imagemagick for sure.
Here is an example with two different versions of Imagemagick with a transparent background:
Code: Select all
convert -background transparent -fill "#00ff00" -size 500x100 caption:"A small test" text.png
- The old version 6-5-9-2 (the result is good) :
- With the new version 6-9-0-5 (the result is not clean) :
We see that there is a problem with the text edges.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T06:33:49-07:00
by snibgo
I can't reproduce that problem, but I'm using 6.9.0-0. Someone else might test with a newer version.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T08:35:02-07:00
by badabou
I just tested with version 6.9.0-0 dans there no problem.
Ultimately, it is the 6.9.0-5 version where there is a problem.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-20T10:45:07-07:00
by fmw42
I have tested and it seems fixed in IM 6.9.0.7beta (Mac OSX SnowLeopard)
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-21T00:32:56-07:00
by badabou
Same problem with ImageMagick 6.9.0-6.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2015-02-21T01:11:20-07:00
by badabou
Indeed, ImageMagick-6.9.0-7 beta (linux) there is no problem.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2018-06-14T09:57:01-07:00
by doctor_regtools
I am getting this problem on imagemagick 6.9.7-4 (on Ubuntu)
Same test case as before
running
Code: Select all
convert -background "#ff0000" -fill white -strokewidth 3 -stroke "#00ff00" -size 500x100 caption:"A small test" text.png
gives me
As you can see the 'S' and the 'a' are lower than the other letters.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2018-06-14T10:09:45-07:00
by fmw42
I do not see this issue in IM 6.9.10.0 Q16 Mac OSX. I suggest you upgrade. 6.9.7.4 is over 200 versions old.
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2018-06-15T02:05:40-07:00
by doctor_regtools
OK I installed from source - so I am now running 7.0.8-1
Same issue though. Wonder if it's OS related rather than version related?
Re: Text with stroke Anti-aliasing (shadow) problem
Posted: 2018-06-15T09:45:53-07:00
by fmw42
Which issue do you question? There are two above. I tried 7.0.8.0 on my Mac and the last one above about uneven baseline and it seems fixed. IM 7.0.8.1 is beta and could be undergoing some changes. So I would not trust that, yet.