Resolution and pixel right side edge pixel stretch bug in Rawtherapee with Sony A7 IV's ARW files

Of course, nice to have this ability. But for some reason it did not work for me.
06,324,336,342,360,372,384,402,414,420],
“pdaf_offset” : 9
},

{ // Quality C
    "make_model": "Sony ILCE-7M4",
    "dcraw_matrix": [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584 ] // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ],
},

{ // Quality C,
    "make_model": "Sony ILCE-7RM3",

The quotation marks are still different. The code for (") needs to be corrected.

edit:
see the difference:

“raw_crop”: [ 0, 0, -36, 0 ]
"raw_crop": [ 0, 0, -36, 0 ]

means: exchange each ” against "

1 Like

… and one comma too many, and one comma still missing!

Upload an affected raw file here or at a file host. Would be easier for anyone with RawTherapee to add the raw crop and to send you camconst.json to you later. I can do it after a month.

1 Like

does this look right?


I tried it, did not work. maybe something else was wrong too.
I’ve tried this:
{ // Quality C
“make_model”: “Sony ILCE-7M4”,
“dcraw_matrix”: [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584 ], // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ], // full raw frame 7008x4672
and this
{ // Quality C
“make_model”: “Sony ILCE-7M4”,
“dcraw_matrix”: [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584 ] // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ], // full raw frame 7008x4672
and this
{ // Quality C
“make_model”: “Sony ILCE-7M4”,
“dcraw_matrix”: [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584 ], // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ]

Referring to your image: No, It still is not right.
The comma you have placed after 6584: move it to after the ] on the same line.
You have wrong types of " on both sides of raw_crop.

1 Like

I forgot to mention I’ve tried that too, still does not work

{ // Quality C
“make_model”: “Sony ILCE-7M4”,
“dcraw_matrix”: [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584, ] // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ], // full raw frame 7008x4672
},

{ // Quality C
“make_model”: “Sony ILCE-7M4”,
“dcraw_matrix”: [ 7460, -2365, -588, -5687, 13442, 2474, -624, 1156, 6584 ], // ColorMatrix2 using illuminant D65 from Adobe DNG Converter 14.2
“raw_crop”: [ 0, 0, -36, 0 ] // full raw frame 7008x4672
},

1 Like

It did not work. I’ve tried both appdata folder and programs folder.

I am afraid, as long as we dont see a raw file, nor your camconst file, we are kind of fishing in the dark. Pls send such files for we can have a look.

1 Like

Here’s the file updated file: Here’s the file. camconst.json.json - Google Drive

Here’s a ARW file: DSC09231.ARW - Google Drive

thanks for the upload. I am sorry but in RT 5.9_dev I cannot reproduce your issues, no missing pixels and the resolution is 7040x4688, sounds ok for me.

greetings
Martin

Edit:
Now i can reproduce, after opening the file a second time: RT shows a width of 7028 pxls then and doesnt change when set to profile “normal”

Or if a developer never notices the problem.

I own an A7M4 but I haven’t used it much the past year or so for various reasons. (I’m the one that did the color profile for the A7M4 included with RT) I’ve never noticed this issue before, will take a look when I get back from vacation.

Something was secretly merged.

what do you mean by ‘’ profile “normal”‘’

Lightroom reads it correctly.


also no stretched pixels on the right.

but in Rawtherapee resolution is wrong

As I posted, a fix for RT has been merged a few days ago. If you dare to use a dev build which contains the fix, you can get it here: Release Automated Builds · Beep6581/RawTherapee · GitHub

(You should know, dev builds will use their own appdata folder with their own settings and profiles. You can of course copy over your stuff from the stable version. Edits done with dev builds could contain stuff, that wont work with previous stable versions.)

If you don’t want to mess around with dev builds, you need to wait for 5.10.

I don’t know why editing the json file doesn’t work. I tried it myself without success. But I can confirm, that the dev version is fine.

1 Like

Sweet. I will check it out.

I’ve tested it works, but the resolution is different it sohuld be. Still 7040x4688.
For some reason Windows 11 also reads it as 7040x4688. But not always. but Lightroom reads it correctly. Unless the resolutions actually are different for no apparent reason.
The resolution A7 IV shoots is 7008x4672.

Just wild guesses, since I don’t really know about that stuff:

This is probably the resolution of the JPGs, which is achieved by cropping away more pixels than necessary at the edges. And LR possibly adapts to this. RT may only remove as much as is needed to offer you as much data as possible.

I don’t know why RT would still show you 7040x4688 px. Have you tried an unedited photo or clearing the pp3 profile? Otherwise, I personally wouldn’t care too much about these numbers, as long as it looks right. :man_shrugging:

2 Likes