Re: making image smaller with same aspect ratio
| From: | azero | Date: | Sat, 21 Jun 2003 10:35:08 +0000 |
| Subject: | Re: making image smaller with same aspect ratio | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152376@lists.php.net to get a copy of this message | ||
> Hey all,
>
> How do you reduse an image while keeping the same aspect ratio so not to
> distort the image
>
> Thanks
Original image: x - 800 y - 600
New size: x1 -100 y1 - ?
y1 = 600*100/800 = 75
formula is: y1 = y*x1/x
the same if you want to find x1 when know y1.