diff --git a/core.js b/core.js index 75358433..ddac40eb 100644 --- a/core.js +++ b/core.js @@ -590,7 +590,7 @@ async function _fromTokenizer(tokenizer) { }; } - if (check([0x1C, 0x00, 0xFE, 0x00], {offset: 8})) { + if (check([0x1C, 0x00, 0xFE, 0x00], {offset: 8}) || check([0x1F, 0x00, 0x0B, 0x00], {offset: 8})) { return { ext: 'nef', mime: 'image/x-nikon-nef' diff --git a/fixture/fixture4.nef b/fixture/fixture4.nef new file mode 100644 index 00000000..be76f9d4 Binary files /dev/null and b/fixture/fixture4.nef differ diff --git a/test.js b/test.js index f05817d3..a8998993 100644 --- a/test.js +++ b/test.js @@ -38,7 +38,9 @@ const names = { ], nef: [ 'fixture', - 'fixture2' + 'fixture2', + 'fixture3', + 'fixture4' ], '3gp': [ 'fixture',