Reading large images as thumbnails locally via HTML5 filereader
问题 I am trying to load local images as thumbnails as explained here. My code is below. This works fine for small images. However, when you try load larger images (e.g. 4mb) there is a huge lag. Is there any way to optimize this? Thanks Html <input type="file" id="files" name="files[]" multiple /> <output id="list"></output> Javascript <script> function handleFileSelect(evt) { var files = evt.target.files; // FileList object // Loop through the FileList and render image files as thumbnails. for