raw_crop values in camconst.json for ILCE-7RM5 (Sony A7RV)

This is because the uncompressed & lossy images have different size to the new lossless mode when unpacked:

Exif.SubImage1.ImageWidth                     9600
Exif.SubImage1.ImageLength                    6376
Exif.SubImage1.RowsPerStrip                   6376

vs

Exif.SubImage1.ImageWidth                     9728
Exif.SubImage1.ImageLength                    6656
Exif.SubImage1.TileWidth                      512
Exif.SubImage1.TileLength                     512

This was an oversight on Sony’s part (there is nothing in the TIFF spec saying the image size has to be a multiple of the tile size; padding/borders are to be ignored automatically anyway), but now we’re stuck with it, affecting all “newer” cameras since the introduction of the lossless mode.

The actual active area size for lossless mode is in a new tag 0x7038 SonyRawImageSize (which is completely unnecessary had Sony not made the said oversight), and for 7RM5 it is 9568x6376 (note that this actually is the -32, 0 from the traditional uncompressed/lossy files).

1 Like