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

[7.0-stable] Merge pull request #2556 from mamhoff/fix-nan-ratio-error #2580

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.0-stable:

Questions ?

Please refer to the Backport tool documentation

When indicating that a picture can be cropped, but needs to have a
certain height or width but leaves the other dimension free, current
Alchemy throws a `NaN` error because of float division by Zero.

This commit handles this case by returning nil if the calculated mask is
Not a Number.

(cherry picked from commit 1fc477a)
@tvdeyen tvdeyen merged commit d1b6584 into 7.0-stable Sep 18, 2023
39 of 40 checks passed
@tvdeyen tvdeyen deleted the backport/7.0-stable/pr-2556 branch September 18, 2023 14:42
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.

3 participants