We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03be128 commit 41b4b47Copy full SHA for 41b4b47
js/load-image-exif.js
@@ -43,12 +43,7 @@
43
console.log('Invalid Exif data: Invalid thumbnail data.')
44
return
45
}
46
- hexData = []
47
- for (i = 0; i < length; i += 1) {
48
- b = dataView.getUint8(offset + i)
49
- hexData.push((b < 16 ? '0' : '') + b.toString(16))
50
- }
51
- return 'data:image/jpeg,%' + hexData.join('%')
+ return URL.createObjectURL(new Blob([dataView.buffer.slice(offset,offset+length)]));
52
53
54
loadImage.exifTagTypes = {
0 commit comments