note 19416 deleted from function.imagecreatefrompng by googleguy

From: Date: Tue, 22 Oct 2013 09:00:43 +0000
Subject: note 19416 deleted from function.imagecreatefrompng by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196818@lists.php.net to get a copy of this message
Note Submitter: robross at comcast dot net ---- 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.

« previous php.notes (#196818) next »