Page 1 of 1

Disable text antialias

Posted: Thu May 24, 2007 9:34 am
by izua
Hi!
I'm working with really small images (32x32/16x16), with low color count.
The script is supposed to take an input image, and output is as a ICO (i have done the conversion script).

The problem is that the antialias generates too many colours.
They (php.net) say that as long as the image isn't truecolor, i can write the negative of the color (ie: put a - before it) so I can disable antialias. Although some small differences appear when I do it, there's still extra colors.

I want to write plain text, with only one color.

Here's what i get with my current script: izua.zephyrhosting.net/test.jpg

How can I disable even this smoothing/antialias/whatever?

Thanks!

Posted: Wed Aug 15, 2007 8:44 am
by Sorayna
You can't:)

Re: Disable text antialias

Posted: Wed Aug 15, 2007 9:45 am
by superdezign
izua wrote:The script is supposed to take an input image, and output is as a ICO (i have done the conversion script).
Likely, the problem is in your conversion. I've dealt with the ICO format, and you have to work with exact colors to get exact results. Create the palette, then use the colors from that palette (imagecolorexact()) to create the image pixel by pixel.