Auto crop raw file

Hey.

I’m trying to use the dynamic profile to automaticall crop my raw files to the same size as out-of-camera JPGs. But I’m having problems with landscape vs portrait orientation. The orientation-as-image does not seem to work in this case. Portrait oriented pictures get cropped in the wrong way. Is there a way to do this with stock RT?

I’m using this dynamic rule:
[rule 2]
iso_min=0
iso_max=512000
fnumber_min=0
fnumber_max=100
focallen_min=0
focallen_max=10000
shutterspeed_min=0
shutterspeed_max=1000
expcomp_min=-20
expcomp_max=20
camera_enabled=true
camera_value=re:X-T20
lens_enabled=false
lens_value=
profilepath=${U}\cut_x-t20

With this partial profile:
[Version]
AppVersion=5.3-228-g56dc615b
Version=327

[Crop]
Enabled=true
X=9
Y=9
W=6000
H=4000
FixedRatio=true
Ratio=3:2
Orientation=As Image

As an alternative, read line 5 to 7 and add the following to your personal camconst.json file:

    { // Quality B
        "make_model": [ "FUJIFILM X-T20" ],
        "dcraw_matrix": [ 11434,-4948,-1210,-3746,12042,1903,-666,1479,5235 ], // DNG_v9.4 D65
        "raw_crop": [ 9, 9, 6014, 4014 ], // full raw 6160,4032, Usable 6032,4032 - experimental crop
        "ranges": { "white": 16100 }
    },

This remembers me something : Crop in default processing profiles - #11 by guilc :wink:

1 Like

There’s also the rawcrop branch which is a first step to allow defining the raw crop in pp3 file (on top of the settings provided by camconst.json or dcraw)

Cool, camconst seems to work. Thanks!
That branch sounds nice, hope it can make its way into 5.4 or similar :slight_smile: