View Full Version : resize any image and save results

12-24-2007, 01:22 AM
i have an upload php file which allows my to upload any file type, i have set it to only allow .jpg .gif .png files but there are loads.

the problem i am facing is the size issue.

i wish to resize the images uploaded to be 100 X 100 or better still have both dimensions below 100, but one of them at 100. (in case image is resized to say 100 X 1000 !)

how can this be done?

thanks in advance.

12-24-2007, 02:49 AM
getimagesize() (http://php.net/getimagesize)
imagecreatetruecolor() (http://php.net/imagecreatetruecolor)
imagecopyresampled() (http://php.net/imagecopyresampled)
imagejpeg() (http://php.net/imagejpeg)
imagepng() (http://php.net/imagepng)