imagemeta icon indicating copy to clipboard operation
imagemeta copied to clipboard

CRW Canon file support

Open matrixik opened this issue 4 years ago • 3 comments

Hello, thank you for creating this package, it's really useful for my small image renamer.

I found that it's not finding EXIF data in CRW image. Not sure how to read first bytes of files so I'm attaching this image.

CRW_1446.zip

I also found that Darktable have list of headers, maybe it will be useful for you:

https://github.com/darktable-org/darktable/blob/2e18924ffa35128da374e1608521c909260fe26d/src/common/imageio.c#L395-L451

matrixik avatar Jun 16 '20 19:06 matrixik

Thanks for opening up this issue and for your sample image. CRW images are not based on Tiff Directories, therefore they have a different directory structure.

See the link below for more information on the CRW file format. https://exiftool.org/canon_raw.html

It doesn't seem too complex of a structure to implement, unfortunately I can't dedicate time to implement this now.

I would welcome a PR if you would be willing to implement this.

evanoberholster avatar Jun 17 '20 04:06 evanoberholster

I add support for identifying the CRW image type: da0d587ed51c53fa25001343653309fa9cb71950

evanoberholster avatar Jun 17 '20 04:06 evanoberholster

I don't have time now for adding support for new formats but I found repository with RAW samples from many cameras on https://raw.pixls.us/

All are licensed with CC0 so could be used as test samples.

matrixik avatar Jun 19 '20 06:06 matrixik