Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: maxSize ignored when clipping shape on save #12

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

MathiasDL
Copy link

Fix: maxSize was not considered when clipping the path of a shape: if a maxResultSize was passed lower than the image size, the clipping was incorrect

Example image (1200 px, maxResultSize = IntSize(300, 300)):

Image Old result Fixed result

If a `maxResultSize` was passed lower than the image size, the clipping was incorrect
@tamimattafi tamimattafi self-requested a review September 28, 2024 07:30
@tamimattafi tamimattafi added the bug Something isn't working label Sep 28, 2024
@tamimattafi tamimattafi merged commit b850382 into tamimattafi:main Sep 29, 2024
@tamimattafi
Copy link
Owner

Thank you @MathiasDL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants