note 19416 added to function.imagecreatefrompng

From: Date: Tue, 26 Feb 2002 21:47:32 +0000
Subject: note 19416 added to function.imagecreatefrompng
Groups: php.notes 
Request: Send a blank email to php-notes+get-27091@lists.php.net to get a copy of this message
This color table issue is actually a bit more complicated. From my testing, it would appear that whatever colors you have specified in the color table for your picture in the first nth number of spots, those colors will automatically be given to the first "n" colors you attempt to use in your CreateImagefromPNG. So, for example, if you need to create dynamic black and red text in your image, the first three spots in the color table for your background image should be white, black and red (in this order). This can be a pain, but it is the only way to ensure that your images look as intended in all browsers. -- http://www.php.net/manual/en/function.imagecreatefrompng.php http://master.php.net/manage/user-notes.php?action=edit+19416 http://master.php.net/manage/user-notes.php?action=delete+19416 http://master.php.net/manage/user-notes.php?action=reject+19416

« previous php.notes (#27091) next »