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.
2 parents 158e351 + 7e88633 commit fdf760cCopy full SHA for fdf760c
exif.js
@@ -352,7 +352,7 @@
352
}
353
354
355
- if (img instanceof Image || img instanceof HTMLImageElement) {
+ if (img.src) {
356
if (/^data\:/i.test(img.src)) { // Data URI
357
var arrayBuffer = base64ToArrayBuffer(img.src);
358
handleBinaryFile(arrayBuffer);
@@ -368,7 +368,7 @@
368
} else {
369
var http = new XMLHttpRequest();
370
http.onload = function() {
371
- if (http.status == "200") {
+ if (this.status == 200 || this.status === 0) {
372
handleBinaryFile(http.response);
373
374
throw "Could not load image";
0 commit comments