Fonts, Aliasing, Transparency 6.2.5 vs 6.2.6
Fonts, Aliasing, Transparency 6.2.5 vs 6.2.6
I updated IM to 6.2.6 and noticed a weird problem when drawing text on a transparent background.
Example in 6.2.5:
Example in 6.2.6:
On both of these, I start with a transparent gif, then draw the font on it w/ black as the fill color. These images need to be transparent, as they will be placed on an image in a web browser.
Now, I realize that neither is prefect, but to me, the first is a bit more readable.
Is there a way I can get the same effect as I did in 6.2.5? Or, is there a way I can get even better results?
Example in 6.2.5:
Example in 6.2.6:
On both of these, I start with a transparent gif, then draw the font on it w/ black as the fill color. These images need to be transparent, as they will be placed on an image in a web browser.
Now, I realize that neither is prefect, but to me, the first is a bit more readable.
Is there a way I can get the same effect as I did in 6.2.5? Or, is there a way I can get even better results?
Last edited by dognose on 2006-03-16T23:29:35-07:00, edited 1 time in total.
Code: Select all
convert -fuzz 50% -size 150x60 xc:transparent -font "fonts/AirConditioner.ttf" -pointsize 48 -draw "text 0,50 'Test'" test.gif
Convert was installed from ImageMagick-6.2.6-3.x86_64.rpm
Sorry, this was causing me a problem for all the fonts (some looked much worse than others) I don't have standard fonts installed to test with.
http://www.1001freefonts.com/winfonts/a ... tioner.zip
This one also looked real bad:
http://www.1001freefonts.com/winfonts/ayummyapology.zip
http://www.1001freefonts.com/winfonts/a ... tioner.zip
This one also looked real bad:
http://www.1001freefonts.com/winfonts/ayummyapology.zip
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Saving images with transparency (fonts or otherwise) is dealt with in the IM examples at
http://www.cit.gu.edu.au/~anthony/graph ... ats/#trans
http://www.cit.gu.edu.au/~anthony/graph ... ats/#trans
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
The point is you can now adjust how the semi-transparent pixels convert to full transparency, or opacity.
The use of -fuzz in this regard I never accepted as a practical way as fuzz has always been more to do with color comparisions rather than transpaency thresholding. I like to keep them separate.
The use of -fuzz in this regard I never accepted as a practical way as fuzz has always been more to do with color comparisions rather than transpaency thresholding. I like to keep them separate.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/