Hi everyone, I'm currently working on resizing an image that the user wants uploaded as their avatar. The resizing will occur before the uploading. Any suggestions on where to go from here?
If the resizing is going to happen before you upload it, the server obviously can not process it. Microsoft powertoys is a good solution for image resizing on Windows: http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
Just to be clear: It's difficult to do image resizing on the user's computer before that image is uploaded to your server, and probably impractical for most websites. It is much easier to use one of the examples from the previous posts to do the resizing after the user's image has been uploaded to your website.
I don't know if people still want to have a solution for this question.. I found awhile ago a solution with SwfUpload. SwfUpload to be exact: h*ttp://code.google.com/p/swfupload. It is a bit challenging to get it working but it is worth it. Visitors will not recognize it is Flash. If you look under download you see there is a beta (version 2.5.0.beta3.2). This version is rather heavy (260Kb) but it does resize the image before upload. Nowadays everybody has 12M pixel camera's resulting in 2Mb or more pictures. Uploading a few images with a slow internet connection can be a drag. SwfUpload, resizes the images within a few seconds on the visitors computer before uploading them. (*= remove *)