diff --git a/rtengine/camconst.json b/rtengine/camconst.json index fd7b4bf0f..13b0117da 100644 --- a/rtengine/camconst.json +++ b/rtengine/camconst.json @@ -2319,6 +2319,7 @@ Camera constants: { // Quality A "make_model": "Sony ILCE-7M2", + "raw_crop": [ 0, 0, 6024, 4024 ], "dcraw_matrix": [ 5271,-712,-347,-6153,13653,2763,-1601,2366,7242 ], // DNGv8.7.1 "ranges": { "black": 512, "white": 16300 } }, diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc index d302eb425..3c4e2d40f 100644 --- a/rtengine/dcraw.cc +++ b/rtengine/dcraw.cc @@ -9874,7 +9874,8 @@ konica_400z: width -= height > 3664 ? 8 : 32; if (!strncmp(model,"DSC",3)) black = 200 << (tiff_bps - 12); - } else if (!strcmp(make,"Sony") && raw_width == 6048) { + } else if (!strcmp(make,"Sony") && strcmp(model,"ILCE-7M2") && raw_width == 6048) { + // for Sony ILCE-7M2 the raw crop is defined in camconst.json width -= 24; if (strstr(model,"RX1") || strstr(model,"A99")) width -= 6;