Resize an Image Using Canvas, Drag and Drop and the File API
Drag an image into the box below to see it automagically resized with canvas and JavaScript.
Drop your image file in to this box.
[ This code example from Resize Image Using Canvas Code Snippet page. ]