#21513·darktable

Rotate sometimes forgets to re-scale to largest area

Author: rekcodockerCreated Jul 8, 2026Updated Sep 18, 2026
Labelsreproduce: confirmedscope: image processing

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

I have hotkeys set up to rotate an image to correct the horizon. Every keypress rotates 0.20 degrees ( I use this to operate a macro-pad) Rotate-and-perspective is set to 'largest area' I hit the key a few times to rotate the image. Sometimes (30-50% is my guess) it rotates, but does not re scale to fill the frame.

My guess this is a race-condition where the rescaler may be still running the previous iteration, but the rotator delivers a new frame. Then when the rescaler is finished, it thinks it's done.

Important: this remains in the lightable preview and in the export!

Relevant info: I use a GPU/OpenCL so perhaps there is a race condition / pipeline issue.

Steps to reproduce

Program hotkey to rotare left or right 0.20 degrees. go to darktable hit the key a number of times Perhaps it also works when you rotate using the mousewheel.

See screenshot

Expected behavior

Best solution which would also improve performance: Notice that the user is making multiple adjustments, schedule only one rescale at the end. And also: Disable historgram-recalc while rotating and just recompute it once at the end. Will improve performace.

Logfile | Screenshot | Screencast

Image

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.6

What OS are you using?

Linux

What is the version of your OS?

Linunx Mint 22

Describe your system

I use an Intel GPU

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

Intel GPU, latest Vino driver.

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response