Skip to content

Allow the rotate and perspective module to perform a rotation with one fit line#20585

Open
lefth wants to merge 1 commit intodarktable-org:masterfrom
lefth:patch-rotate-one-line
Open

Allow the rotate and perspective module to perform a rotation with one fit line#20585
lefth wants to merge 1 commit intodarktable-org:masterfrom
lefth:patch-rotate-one-line

Conversation

@lefth
Copy link
Copy Markdown
Contributor

@lefth lefth commented Mar 19, 2026

The algorithm already supported this operation, but the check for minimum lines was too strict.

With this change, all the operations still seem to work correctly:

  • with one drawn fit line, all operations still fail with the error message except the correct rotation direction
  • generating fit lines still works
  • drawing a fit box still works
  • with lines or box, the various perspective transforms still work

This fixes #20584.

…e fit line

The algorithm already supported this operation, but the check for
minimum lines was too strict.

This fixes darktable-org#20584.
@TurboGit
Copy link
Copy Markdown
Member

TurboGit commented May 8, 2026

@lefth : Back to this after a quite long work/review on the new AI features.

I'm not convinced by this proposal. Having failed algorithm except the rotation fill really awkward and sounds like a bad UX to me. The rotation is supported by right-click on the image and I think we should stay with that.

@TurboGit TurboGit added controversial this raises concerns, don't move on the technical work before reaching a consensus labels May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controversial this raises concerns, don't move on the technical work before reaching a consensus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rotate and perspective module doesn't allow rotation with one drawn line

2 participants