Bug #13197: ImageTTFText broken on truecolor images
| From: | jeremy at deadbeef dot com | Date: | Fri, 07 Sep 2001 16:09:51 +0000 |
| Subject: | Bug #13197: ImageTTFText broken on truecolor images | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65372@lists.php.net to get a copy of this message | ||
From: jeremy@deadbeef.com
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: GD related
Bug description: ImageTTFText broken on truecolor images
The resulting image is blank, works fine for palette images.
$img = ImageCreateTrueColor(300, 300);
$black = ImageColorAllocate ($img, 0, 0, 0);
$white = ImageColorAllocate ($img, 255, 255, 255);
ImageTTFText ($img, 40, 0, 20, ImageSY($img)-20, -$white,
"/home/sageconspiracy/lib/fonts/bio.ttf", "TextText");
ImageJPEG($img, "", 50);
--
Edit bug report at: http://bugs.php.net/?id=13197&edit=1