HTML5 Pre-resize images before uploading
Yes, use the File API, then you can process the images with the canvas element. This Mozilla Hacks blog post walks you through most of the process. For reference here’s the assembled source code from the blog post: // from an input element var filesToUpload = input.files; var file = filesToUpload[0]; var img = document.createElement(“img”); … Read more