"Marcel Wouterse" on  wrote...
| Hi,
| 
| Maybe i am doing something wrong, but when i create a text with a
| transparent background i get "ugly" letters.
| 
| An example you can find here:
| http://www.online-image-editor.com/tests/text.html
| 
| The convert that i use:
| convert -background transparent -fill blue -font Arial -pointsize 72
| label:Marcel.  label.gif
| 
| Does anybody know how to create "nice" letters on transparent background?
| 
Avoid GIF when dealing with transparency.

GIF images only have boolean transparency and as such you loose a lot of
quality with that image format.  See
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/formats/#trans

Contine reading this link for ways to make your text nicer...

Note that the GIF image you generated should be purely blue and
transparent, no other colors should be present, not even
semi-transparent edging due to the 'boolean transparency' of the GIF
format.

You can check that with...

   convert -background transparent -fill blue \
           -font Arial -pointsize 72 label:Marcel.  gif:- |\
     identify -verbose - 

which for me showed a histogram of just
  Histogram:
      3650: (  0,  0,255,  0)   blue
     21582: (171,172,173,255)   #ABACADFF

EG: only pure blue and a fully transparent colors are present in the
image.

IDEAL SOLUTION...

The best idea is to use PNG, and add a PNG fix to your page for the
brain dead IE version 5 and 6  (IE v7 about to be released has this
fixed!).

You can see my notes of these PNG fixes at..
  http://www.cit.gu.edu.au/~anthony/wwwlab/pngtest/

I have NOT found one that works well in all conditions for my own pages,
but and currently using the solution from 
    http://homepage.ntlworld.com/bobosola/index.htm


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   The Skeleton clicked its teeth in a bizarre rictus that might have
   been a smile.   How would you know if a skeleton was smiling?
         -- Larry Niven and Steve Barnes, "Barzoom Project" (Dream Park)
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to