Repository navigation
Crop: custom aspect ratios and a 9:20 preset - #241
Merged
robbietilton merged 3 commits intoOct 26, 2026
Merged
Conversation
Contributor
Author
|
Hi @robbietilton — just a gentle bump on this one. It's been about a week with CI green; happy to adjust anything if you have feedback. Thanks! |
…al renamed Canvas Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged, thank you @Lens-lzy! Custom… is a great fit: one menu entry covers 4:5, 3:2, 2.35:1 and anything else people need, and the validation and tests were thorough. A few small changes before merging, to keep the menu short:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Crop tool currently offers only fixed aspect ratios. This adds a 9:20 preset and a Custom… entry that opens a small width:height editor, accepting positive numbers including decimals. Confirming a value displays it in the ratio menu and reshapes the crop frame; dismissing the editor leaves the current ratio unchanged.
For example, choosing 2.5:1 on a 900 × 600 canvas gives a 900 × 360 crop frame. Invalid, non-finite, zero, negative, and unrepresentable ratios cannot be applied. Extreme valid ratios resize within the existing whole-pixel document limits. Free, Original, and the existing presets remain available.
Closes #165.
Validation: