hi,
hab ein merkwürdiges problem:
das funzt:
	
Ergebnis: bild 100x100 mit text
das funzt nicht:
	
Ergebnis: buttonrohling wird ohne text geschrieben
pfade stimmen, dateien sind alle da, trotzdem schreibt er mir zum verrecken
den text nicht ins bild. lokal klappts tiptop.
lokal GD > 1.6
web GD 2
hat jemand ne idee, warum imagettftext mit imagecreatefrom nicht gehen soll?
thx wurzel
					hab ein merkwürdiges problem:
das funzt:
PHP-Code:
	
	
   $mybutton = $designpath.$design."/bu".$typ.".jpg";
   $mybutton = $inpath."bu".$typ.".jpg";
   $schrift = "verdana.ttf";
   $myfont = $mainpath."/fonts/verdana.ttf";
//   $image1 = imagecreatefromjpeg($mybutton);
   $image1 = imagecreate(100,100);
   $bcolor1 = ImageColorAllocate($image1,0,0,255);
   $vcolor1 = ImageColorAllocate($image1,255,0,0);
   ImageTTFText($image1, $h, $rt, $l, $o,$vcolor1, $myfont,"menutext");
   imagejpeg($image1,"test.jpg",100);
   imagedestroy($image1); 
das funzt nicht:
PHP-Code:
	
	
   $mybutton = $designpath.$design."/bu".$typ.".jpg";
   $myfont = $mainpath."/fonts/verdana.ttf";
   $image1 = imagecreatefromjpeg($mybutton);
//   $image1 = imagecreate(100,100);
   $bcolor1 = ImageColorAllocate($image1,0,0,255);
   $vcolor1 = ImageColorAllocate($image1,255,0,0);
   ImageTTFText($image1, $h, $rt, $l, $o,$vcolor1, $myfont,"menutext");
   imagejpeg($image1,"test.jpg",100);
   imagedestroy($image1); 
pfade stimmen, dateien sind alle da, trotzdem schreibt er mir zum verrecken
den text nicht ins bild. lokal klappts tiptop.
lokal GD > 1.6
web GD 2
hat jemand ne idee, warum imagettftext mit imagecreatefrom nicht gehen soll?
thx wurzel
 
          

Kommentar