Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current-generation Nikon D750 NEF example #337

Merged
merged 1 commit into from Mar 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion core.js
Expand Up @@ -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'
Expand Down
Binary file added fixture/fixture4.nef
Binary file not shown.
4 changes: 3 additions & 1 deletion test.js
Expand Up @@ -38,7 +38,9 @@ const names = {
],
nef: [
'fixture',
'fixture2'
'fixture2',
'fixture3',
'fixture4'
],
'3gp': [
'fixture',
Expand Down