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 AbstractPicture.get_size for portrait images + changelog + tests #100

Merged
merged 2 commits into from
May 12, 2022

Conversation

SteinRobert
Copy link
Contributor

Adds tests and changelog entry missing in #98

oliwarner and others added 2 commits October 12, 2020 16:36
We input a 1:2 image and set JUST a width limit. The output was a tiny image stretched to our original limit. and was getting out a bizarrely tiny image. This was due to two problems.
 - Only involve the Golden Ratio when you're cropping!
 - Use it in the right direction. When you have a portrait image, you need to inverse the ratio.
- add test for portrait image
- add test for missing picture
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

3 participants