Google Fan Webmaster Forum - Tekil Mesaj gösterimi - Php 'de Herhangi Resim Üzerine Yazı
Tekil Mesaj gösterimi
  6  
Alt 12-07-2007, 12:30:43
Maresca Maresca isimli üyemiz çevrimdışıdır. (Offline)
Üyeliği durduruldu
 
Standart

Alıntı:
S4l1h Nickli Üyeden Alıntı Mesajı göster
<?
$dosya = "krl.jpg";
$uzanti = explode(".",$dosya);
$uzanti = $uzanti[count($uzanti)-1];
if($uzanti=="png"){
header("Content-type: image/png");
}else if($uzanti=="jpg" || $uzanti=="jpeg"){
header("Content-type: image/jpeg");

}else if($uzanti=="gif"){
header("Content-type: image/gif");

}else{
echo 'Böyle Bir Uzantı Yok';
exit();
}

$metin = "Emrah Ülker";
$resim = imagecreatefrompng("$dosya");
$turuncu = imagecolorallocate($resim, 220, 210, 60);
$px = (imagesx($resim) - 7.5 * strlen($metin)) / 2;
imagestring($resim, 2, $px, 9, $metin, $turuncu);
imagejpeg($resim);
imagedestroy($resim);

?>

Böyle Bİşey OLması Lazım Sanırım
<br><b>Fatal error</b>: Call to undefined function: imagecreatefrompng() in <b>c:\apache\htdocs\noname1.php</b> on line <b>19</b><br>

böyle bi hata verdi
Alıntı ile Cevapla