I had the same problem when using JPEG, but having a white pixel in the
picture solved it. But that did obviosly not solve your problem. Perhabs
this is due to "bug-version" of GD library, have you tried a newer one?
Does this also happen if you use JPEG and GIF files?
Let us know if you find solution!
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
------------------------------------------
Phone: (+354) 4615501
Mobile: (+354) 8960376
Fax: (+354) 4615503
E-mail: [EMAIL PROTECTED]
Homepage: www.sed.is
------------------------------------------
-----Original Message-----
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 23. júlí 2001 16:14
To: [EMAIL PROTECTED]
Subject: [PHP] REPOST: Image color quality problems
I need to learn to stop posting things over the weekend since they
rarely get a response. Can anyone help with the below?:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]