note 26303 deleted from function.imagecopyresized by didou
| From: | didou@php.net | Date: | Fri, 20 Jun 2003 12:18:41 +0000 |
| Subject: | note 26303 deleted from function.imagecopyresized by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50722@lists.php.net to get a copy of this message | ||
Note Submitter: feathern at yahoo dit com
----
//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;
}