RE: [PHP] Image color quality problems

From: Date: Sat, 21 Jul 2001 22:59:18 +0000
Subject: RE: [PHP] Image color quality problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59035@lists.php.net to get a copy of this message
Not an answer I'm afraid but does PHP has the ability to do this with JPEGs? Would be VERY useful to me if it does! - seb -----Original Message----- From: Kurt Lieber [mailto:kurt@lieber.org] Sent: 21 July 2001 23:27 To: php-general@lists.php.net Subject: [PHP] Image color quality problems I have the following code that takes an existing image, creates a new one from it and writes some white text on top of that image: <?php header("Content-type: image/png"); $startingImage = "leftphoto_01.png"; $image = imageCreateFromPNG($startingImage); //$white = imageColorAt($image, 30, 215); $white = imageColorAllocate($image, 255, 255, 255); imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf", "This is a test"); imagePNG($image); imagedestroy($image); ?> Problem is, the "white" text isn't white -- it's a dingy gray color. From reading around, I thought maybe if I took an existing white pixel in the image and used that to set white, that might help (hence the commented out //$white = imageColorAt... line in my code above) That didn't help either. (and the pixel I sampled is exactly the shade of white I want) I am almost completely unfamiliar with color pallettes and how to manipulate them. Can someone shed some light on how I can get some clean, bright white text on my image? Thanks. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59035) next »