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

Use max dimension to compute scaling for background #73

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

lromor
Copy link
Contributor

@lromor lromor commented Jun 23, 2022

The scaling value between the foreground mask and the image is currently computing using image width. This is inconsistent compared to the way the mask is generated. This PR fixes this problem by using the max value.

@jonasteuwen
Copy link
Contributor

Looks good! Can you fix the mypy tantrum?

@jonasteuwen jonasteuwen merged commit 3e7f889 into main Jun 24, 2022
@jonasteuwen jonasteuwen deleted the fix-background-scaling branch June 24, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants