note 28562 deleted from function.imagecolorallocate by jsheets
| From: | jsheets@php.net | Date: | Sun, 02 Feb 2003 15:22:40 +0000 |
| Subject: | note 28562 deleted from function.imagecolorallocate by jsheets | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43290@lists.php.net to get a copy of this message | ||
whatever i type in imagecolorallocate, the color is on every picture different.
here is my php-code:
header("Content-type: image/jpeg");
$str="http://www.fetenplaner.de";
$datei="../zeigebild/bild.jpg";
$foto="$bildnr"."_JPG.jpg";
$bild="../$archive/$pfad/Bilder/$foto";
$img=imagecreatefromjpeg($bild);
$unten="$str";
$oben="$datum $namen";
$hoehe=imagesy($img);
$breite=imagesx($img);
$white=imageColorAllocate($img,255,255,255);
$x=$breite-250;
$y=$hoehe-20;
imagestring($img,10,$x,$y,$unten, $white);
imagestring($img,10,10,10,$oben, $white);
imagejpeg($img,($datei),100);
imagedestroy($img);
is there a wrong configuration at the webserver?