note 49100 deleted from function.imagecopyresized by tularis
| From: | tularis@php.net | Date: | Sun, 16 Jan 2005 21:29:29 +0000 |
| Subject: | note 49100 deleted from function.imagecopyresized by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83465@lists.php.net to get a copy of this message | ||
Note Submitter: bytin at mail dot ru
----
I think that proper proportions should be calculated like this:
<?
list($width, $height) = getimagesize($imgfile);
// the new weight of the thumb
$newheight = 80;
// Proportion is maintained
$newwidth = (integer)((80/$width)*$height); // <- this is it
?>