javascriptimage-processing

Image resize before upload


I need to provide a means for a user to upload photos to their web site in jpeg format. However, the photos are very large in original size, and I would like to make the resize before upload option very effortless for the user. It seems my only options are a client side application that resizes the photos before uploading them via a web service, or a client side JavaScript hook on the upload operation that resizes the images. The second option is very tentative because I don't have a JavaScript image resizing library, and it will be difficult to get the JavaScript to run my current resize tool, ImageMagick.

I'm sure this is not too uncommon a scenario, and some suggestions or pointers to sites that do this will be appreciated.


Solution

  • You have several options:

    1. Java
    2. ActiveX (only on windows)
    3. Silverlight
    4. Flash
    5. Flex
    6. Google Gears (the most recent version is capable of resizing and drag and drop from your desktop)

    I've done a lot of research looking for a similar solution to what you have described and there a lot of solutions out there that vary a lot in quality and flexibility.

    My suggestion is find a solution which will do 80% of what you need and customize it to suit your needs.