note 28570 deleted from ref.image by tularis

From: Date: Sun, 29 Jun 2008 21:13:12 +0000
Subject: note 28570 deleted from ref.image by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140982@lists.php.net to get a copy of this message
Note Submitter: sir_hmba at NOSPAMyahoo dot com ---- The GD library, prior to 2.x, does not appear to process images with more than 256 colors without first converting them to a 256 color indexed (palette) image. In other words, if you have a truecolor JPEG or PNG and you load the image up with these functions (e.g., imagecreatefrompng()) then the internal resource will be a palettized version of your original. The only information I found about this were in a few separate comments spread around this section. If you compile PHP with a 2.0 or higher version of the GD library, then the internal image resource will not be subjected to this automatic conversion. I believe that all the RedHat PHP RPMs (as of today) still come compiled with the older version of GD (pre 2.0).

« previous php.notes (#140982) next »