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

[6.1] Picture Ingredient: Fix NaN error with free height #2558

Closed

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Aug 5, 2023

What is this pull request for?

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.

Backport of #2556

Notable changes (remove if none)

None

Screenshots

See #2556

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

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.
@tvdeyen
Copy link
Member

tvdeyen commented Aug 15, 2023

Closed in favor of an automate backporting tool

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.

None yet

2 participants