sindresorhus / file-type

Detect the file type of a file, stream, or data
MIT License
3.64k stars 345 forks source link

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

Open wuxiashuangji opened 7 months ago

wuxiashuangji commented 7 months ago

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

arraybuffer:

0x4D4D002A 00000008 001C00FE 00040000

wuxiashuangji commented 7 months ago

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

arraybuffer:

0x49492A00 08000000 1C00FE00 04000100

wuxiashuangji commented 7 months ago

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

arraybuffer:

0x49492A00 08000000 B00FE000 4000100

wuxiashuangji commented 7 months ago

@mceachen Help me, please solve it

mceachen commented 7 months ago

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.