Hi
I would like to know if this is possible before I start trying! I have a site which lets registered users login and create a portfolio for themselves. We would like to include up to 3 images on the portfolio page and allow the users to upload their own photos.
The plan is to have a form which allows them to pick up to 3 images from their hard drive or elsewhere from their PC. The files will then be uploaded and checked that they are image files (GIF, JPG etc.). It will then resize the image to predefined dimensions (that is the website owners choice) without altering the scaling - so if the scale is out then it would trim the image accordingly.
The file will also need to be resized in terms of disk space so that it is less than say 20K. I would imagine that it makes sense to also make all images into GIFs or JPGs at this point. Is it possible to specify the maximum file size and for the functions to work out the correct compression to use?
It will then give the image a suitable name that corresponds to the users' login name and move the file to a directory/folder on our server ready to be linked into the users' portfolio page.
I believe that PHP's GD libraries (or something!?) might be required - my server has these installed and ready.
I don't need a solution, just some clue as to whethr it will work or not.
Thanks
Rich