Re: scaling images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hulf 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
So, let me get this straight, you want to resize the image to 300x200 BEFORE you upload to your server? And since you are asking this on a PHP mailing list I am going to assume that you want to do this with PHP, correct?

...

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux