Problem with cropping in dynamic profiles

(Fulvio Senore) #1

I use a Micro Four Thirds camera: with some lenses the jpeg image created by the camera is smaller (cropped) than the image created by RawTherapee.
I would like to have the same image crop when using RT to get precise framing with the camera.

Some time ago I was suggested to use cropping in a dynamic profile, so that it is automatically applied when opening an image taken with one of those lenses.

The suggested solution works well but I have a problem: I created the cropping profiles with landscape oriented images. When I open a portrait oriented image RT applies a landscape crop and it reduces the crop width to the width of the portrait image, so that I get a small cropped rectangle in the center of the image.

Of course this behavior is not useful, since what I need is the same crop as in landscape, but rotated to portrait.

Is there a way to solve this problem in any way?

Thanks in advance.

(Sebastien Guyader) #2

Maybe using the Custom Profile Builder plugin would work. It can be found here:

And for creating rules (in your case, a rule based on rotation could work):

(Ingo Weyrich) #3

Crop setting ‘As Image’ should work (have look at the right):

(Fulvio Senore) #4

Thank you for your answer. I looked at your links and I dont’t know if it could solve my problem, but it looks like a rather complicated solution.
I think that I will try it if I will not find other solutions.

(Fulvio Senore) #5

The setting is already “As Image”. Here is the dynamic profile file content:


Ratio=As Image
Orientation=As Image

I have to correct my previous post: if I load a portrait image the resulting crop is almost a square that shows the top part of the image, not the center. The resulting crop is
h = 3351

(Ingo Weyrich) #6

You’re right. Imho it’s a bug. I’ll open an issue.

(Fulvio Senore) #7

I agree that it looks like a bug. Thank you for opening the issue.

(Fulvio Senore) #8

Did you open the issue? I looked but I did not find it.
I can open it if you prefer.

(Ingo Weyrich) #9

Yes, please open an issue. I’m on vacation currently with limited time and internet access.

(Fulvio Senore) #10

I opened the issue.