tomkyle / negatives-linear-tiff

Converts RAW/NEF/CR2 files into linear TIFF files, using GNU Parallel for maximum speed. Other features: B/W grayscaling, TIF resizing and ZIP compression.
https://tomkyle.github.io/negatives-linear-tiff
Other
7 stars 1 forks source link

Thumbnail extraction: not exiftool but dcraw? #17

Open tomkyle opened 7 years ago

tomkyle commented 7 years ago

The buildMogrifyShaveOptions function in _lineartiff checks embedded thumbnails with exiftool's binary data extraction. The metatags used are -JpgFromRawor -PreviewImage, depending on the Raw input file's filetype. This is not very elegant.

It seems dcraw can do this as well, and certainly knows better how to extract any thumbnail data. Perhaps worth a try.

dcraw -c -e "filename.CR2" | cat > "filename.jpg"