note 26303 added to function.imagecopyresized

From: Date: Fri, 25 Oct 2002 17:06:12 +0000
Subject: note 26303 added to function.imagecopyresized
Groups: php.notes 
Request: Send a blank email to php-notes+get-38561@lists.php.net to get a copy of this message
//Because not all images are created alike... //the THUMBNAILER: //image location $img = "x:\\my_image.JPIG"; //pixel size to fit image in a cubic dimention $to = 90; $img_size = getimagesize($img); if(($img_size[0]/$to) > ($img_size[1]/$to)){ $w = $to; $h = round($img_size[1]/($img_size[0]/$to)); }else{ $w = round($img_size[0]/($img_size[1]/$to)); $h = $to; } -- http://www.php.net/manual/en/function.imagecopyresized.php http://master.php.net/manage/user-notes.php?action=edit+26303 http://master.php.net/manage/user-notes.php?action=delete+26303 http://master.php.net/manage/user-notes.php?action=reject+26303

« previous php.notes (#38561) next »