Re: scaling images
| From: | Daniel Brown | Date: | Thu, 20 Sep 2007 13:58:48 +0000 |
| Subject: | Re: scaling images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262295@lists.php.net to get a copy of this message | ||
That's nice.
On 9/20/07, Hulf <ross@blue-fly.co.uk> wrote:
> I have images of varying sizes. I want them to be scaled prior to upload to
> a set size of 300 x 200 px
>
>
> $imageinfo = getimagesize($_FILES['userfile']['tmp_name']);
>
> $ix=$imageinfo[0];
> $iy=$imageinfo[1];
>
>
>
> //upload the images script
> I
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....