public function resizeimage($img, $by, $quality)
{
$original = imagecreatefromjpeg("$img") or die("Hata original resim açýlamýyor.(<em>$imgPath/$img</em>)");
list($width, $height, $type, $attr) = getimagesize("$img");
$newWidth = ($width/$by);
$newHeight = ($height/$by);
$tempImg = imagecreatetruecolor($newWidth, $newHeight) or die("temp img oluþturulamýyor.");
imagecopyresized($tempImg, $original, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height) or die("copya boyutlandýrýlamadý.");
imagejpeg($tempImg, "uploads/resize/$img", $quality) or die("Kaydedilemedi.");
imagedestroy($original);
imagedestroy($tempImg);
return true;
}
toygar dündaralp tdundaralp@gmail.com
bahçivan ibrahim sitesi