h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
https://pkg.go.dev/github.com/h2non/filetype?tab=doc
MIT License
2.05k stars 178 forks source link

DNG image format support? #95

Open dwebfan opened 3 years ago

dwebfan commented 3 years ago

Seems like it is supported in file command already

$ file /tmp/sample1.dng
/tmp/sample1.dng: TIFF image data, little-endian, direntries=54, height=171, bps=662, compression=none, PhotometricIntepretation=RGB, manufacturer=Canon, model=Canon EOS 350D DIGITAL, orientation=upper-left, width=256

Sample file can be found at https://filesamples.com/formats/dng