[thelist] php on-the-fly image and text generation question

Andy Warwick mailing.lists at creed.co.uk
Sun Oct 13 17:08:00 CDT 2002


On Sunday, October 13, 2002, at 09:34  pm, Dunstan Orchard wrote:

> Does anyone have any idea why some of the letters on this page are all
> blurry?
>
> http://www.1976design.com/testarea/photo/image.php

After David's post, it occurred to me that the 'blurriness' you are
referring to is actually the font antialiasing, and that rather use my
original 2 x size solution, you might also turn off antialiasing when
you create the image.

You do this by specifying a negative color index, thus:

ImageTTFText($Image, 8, 0, 10, 230, -$black, "slkscr.ttf", "Fats Wallace
Bridge, Washington DC");

<http://www.uk.php.net/manual/en/function.imagettftext.php>

IIRC though, this was buggy in GD 2.0.1...

HTH

--
Andy Warwick
Creed New Media Design
<http://www.creed.co.uk/src/evolt/index.htm>




More information about the thelist mailing list