Skip to content

Prevent broken crop when minResolution is unreachable#381

Open
robinbisping wants to merge 1 commit into
mainfrom
fix-unreachable-min-resolution
Open

Prevent broken crop when minResolution is unreachable#381
robinbisping wants to merge 1 commit into
mainfrom
fix-unreachable-min-resolution

Conversation

@robinbisping
Copy link
Copy Markdown

@robinbisping robinbisping commented Jun 1, 2026

Relations:

Motivation

The configured minResolution cannot always be reached, depending on the image dimensions and configured crop ratio. srcissors used to render an invalid crop in such cases. Generally, this should be considered a configuration error, but this patch safeguards against it by ignoring minResolution and locking the zoom at the most zoomed-out state, where the crop covers the largest possible image area.

Before:

Screen.Recording.2026-06-01.at.14.37.26.mov

After:

Screen.Recording.2026-06-01.at.14.36.06.mov

Changelog

  • 🐞 Prevent broken crop when minResolution is unreachable

@robinbisping robinbisping requested a review from ajwild June 1, 2026 14:29
@robinbisping robinbisping force-pushed the fix-unreachable-min-resolution branch from 4b10afd to ceb399b Compare June 1, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant