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

Detect NEF format, the result is image/tiff #624

Open
wuxiashuangji opened this issue Jan 31, 2024 · 5 comments · May be fixed by #670
Open

Detect NEF format, the result is image/tiff #624

wuxiashuangji opened this issue Jan 31, 2024 · 5 comments · May be fixed by #670

Comments

@wuxiashuangji
Copy link

wuxiashuangji commented Jan 31, 2024

NIKON D610, AF-S Nikkor 24-120mm f/4G ED VR

arraybuffer:

0x4D4D002A 00000008 001C00FE 00040000

@wuxiashuangji
Copy link
Author

wuxiashuangji commented Jan 31, 2024

NIKON D850, AF-S Nikkor 105mm f/1.4E ED

arraybuffer:

0x49492A00 08000000 1C00FE00 04000100

@wuxiashuangji
Copy link
Author

NIKON D3, AF-S Zoom-Nikkor 14-24mm f/2.8G ED

arraybuffer:

0x49492A00 08000000 B00FE000 4000100

@wuxiashuangji
Copy link
Author

wuxiashuangji commented Jan 31, 2024

@mceachen Help me, please solve it

@mceachen
Copy link
Contributor

I gave up using this library for mimetype detection of raw image file formats--there are so many variants that getting them all correct is close to impossible. I'm using exiftool-vendored now.

@Borewit Borewit linked a pull request Sep 8, 2024 that will close this issue
@Borewit
Copy link
Collaborator

Borewit commented Sep 8, 2024

If someone could give PR #670 a try, that would be great.

npm install https://github.com/sindresorhus/file-type.git#improve-nef-detection

To understand how Nikon identifies the Nikon Electronic Format (NEF), and to test the implementation, providing sample pictures are appreciated.

0x49492A00 08000000 B00FE000 4000100

Please note that this signature is invalid, seems to have 1 byte to many.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants