Hi
I've created a script which lets me upload 3 files, checks that they are image format, converts them into JPEG and then moves them into a folder on the server.
However, we are expecting our users to want to upload large image files (<1Mb) because they are photographs from digital cameras. The images will then be displayed on the site - 3 at a time - so I am concerned that sending 3Mb of images is going to be a performance problem.
What I'd like to do, is resize the images when they are uploaded. I'm not sure how to go about making a 1Mb image into a 30k image (ideal size), so I would appreciate some input on that.
What functions should I use? Should I move the uploaded file first, then resize? Should I resize the uploaded file then move it to the folder?
Thanks