Keep the Lightroom crops

RT 5.4 on Manjaro

I have a few thousand of Lightroom images that I’d like to re-process in RT. I’d like to keep the cropping. The rest of the Lightroom stuff, I don’t care.

Is there a way?

Thanks

Syv

You’ll need to write a custom script that parses the LR xmp and spits out a pp3.

1 Like

Yes, but how do I translate:

Lightroom:

 crs:CropTop="0.235909"
 crs:CropLeft="0.23749"
 crs:CropBottom="0.938255"
 crs:CropRight="0.967291"
 crs:CropAngle="-1.00635"
 crs:CropConstrainToWarp="1"
 crs:HasCrop="True"

To Rawtherapee:

[Crop]
Enabled=true
X=918
Y=0
W=4151
H=3113
FixedRatio=true
Ratio=4:3
Orientation=As Image
Guide=None

I was hoping that somebody had already figured it out, then I could either use awk or python.

Thanks

Syv

Assuming your photos are from one camera model, you already know the width and height.
If they’re from various camera models, you can perhaps get the width and height from the XMP sidecars or from the actual images (exiftool, exiv2 or ImageMagick’s identify: identify -format '%wx%h' foo.raw).
Then for each XMP multiply LR’s crop offsets accordingly and store the results in PP3 files.