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

Pixel size mismatch when cropping non-NEF (e.g. Canon CR2) #14

Closed tomkyle closed 7 years ago

tomkyle commented 7 years ago

The crop routine used in linear-tiff relies on meta data that seems to be available only in Nikon NEF but not in (at least) Canon CR2. Hum.

tomkyle commented 7 years ago

Well, after a few hours it seems the “shaving” information can be calculated with the pixel difference of the embedded preview thumbnail and the dcraw output image.

Currently, cropping works with Nikon NEF and Canon CR2.

Weird: the resulting cropped CR2 is 1 pixel lower than the crop dimensions you see in your Raw comverter. Its width is correct. Well, 1 px seems not so important overall.