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 a05a139 commit 1011ed2Copy full SHA for 1011ed2
lib/utils.js
@@ -327,7 +327,7 @@ export function getExifOrientation(file) {
327
reader.onload = (e) => {
328
const view = new DataView(e.target.result);
329
if (view.getUint16(0, false) != 0xFFD8) {
330
- return resolve(-2);
+ return resolve(-2); // not jpeg
331
}
332
const length = view.byteLength;
333
let offset = 2;
@@ -355,7 +355,7 @@ export function getExifOrientation(file) {
355
offset += view.getUint16(offset, false);
356
357
358
- return resolve(-1);
+ return resolve(-1); // not defined
359
};
360
reader.onerror = (e) => reject(e);
361
reader.readAsArrayBuffer(file);
0 commit comments