RawTherapee specialists, how can I get the maximum number of pixels from the .cr2

When shooting in Raw with a Canon Eos 5DS the original file size of the .cr2 files is 5920 x 8896 pixel.

The Canon Exif data defines the image size to 5792 x 8688 equivalent of a crop of 128 pixel on the vertical and 208 pixel horizontal.

For my application it is necessary to use a minimum of 5856 x 8736 (crop of 64 pixel on the vertical) 160 horizontal what I can do with DCRaw and this works fine. But I also need some functionalities from RawTherapee and am looking for a way to reduce the auto crop area in RawTherapee.

Every advice would be highly appreciated.

Hi @marcusweiss,

The first thing you want to do is set the demosaic border to 0. This will give you the maximum dimensions supported by RawTherapee. Next, you need to override the camconst.json raw crop. Have a look at the defaults for examples and an explanation: https://raw.githubusercontent.com/Beep6581/RawTherapee/dev/rtengine/camconst.json. There is already a raw crop defined for your camera. RawTherapee’s raw crops should give you the largest possible image without including masked or invalid pixels, but I have not verified it for your camera. If it’s not, then it is an issue that needs to be fixed. I bring this up because the dimensions you require are larger than the camconst.json raw crop.