Add new comment

Cropped dimensions mismatch

Hello,
while testing https://github.com/letmaik/rawpy/pull/252 I've noticed some inconsistencies and would like to ask about them here. I suspect some might be bugs.

When checking dimensions of this image https://data.csail.mit.edu/graphics/fivek/img/dng/a0001-jmac_DSC1459.dng, LibRaw's dimensions are off by one.

LibRaw (0.21.3): 3007 x 1999 left: 16 top: 8
Checked with raw-identify -v and looked for line starting with Raw inset, width x height:.

ExifTool:

[TIFF-IFD0-SubIFD] DefaultCropOrigin            : 15 7
[TIFF-IFD0-SubIFD] DefaultCropSize              : 3008 2000

Checked with exiftool -a -G5 -s. (exiv2 reports the same values)

Best,
Juraj

Forums: