Skip to content

Commit 27d4ce9

Browse files
committed
Allow any object with a src attribute to be parsed for EXIF data
1 parent 158e351 commit 27d4ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exif.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
}
353353
}
354354

355-
if (img instanceof Image || img instanceof HTMLImageElement) {
355+
if (img.src) {
356356
if (/^data\:/i.test(img.src)) { // Data URI
357357
var arrayBuffer = base64ToArrayBuffer(img.src);
358358
handleBinaryFile(arrayBuffer);

0 commit comments

Comments
 (0)