note 30925 added to function.imagettftext
| From: | henrik at rack1 dot php dot net | Date: | Thu, 03 Apr 2003 15:07:30 +0000 |
| Subject: | note 30925 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46169@lists.php.net to get a copy of this message | ||
If you try to write ttftext on a 256 color gif or png8 the text color and background color cannot be
allocated, since all the colors are already in use. The result will most certainly look awful.
The solution is: Save your images (from Photoshop or Gimp), on witch you plan to write text, with
256 minus the number of allocated colors and you are rolling.
--
http://www.php.net/manual/en/function.imagettftext.php
http://master.php.net/manage/user-notes.php?action=edit+30925
http://master.php.net/manage/user-notes.php?action=delete+30925
http://master.php.net/manage/user-notes.php?action=reject+30925