-
Notifications
You must be signed in to change notification settings - Fork 60
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 #98
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
===========================================
- Coverage 100.00% 98.00% -2.00%
===========================================
Files 14 14
Lines 246 251 +5
Branches 25 28 +3
===========================================
Hits 246 246
- Misses 0 2 +2
- Partials 0 3 +3
Continue to review full report at Codecov.
|
@oliwarner thank you very much for the PR. This seems legit and working. Would you be able to also:
|
Is there any progress with this pull-request? |
@FinalAngel any change this (or better #100) gets merged ? |
@FinalAngel It would be nice, if this (or #100) gets merged, so I can go back to the upstream repository. |
@steffenmllr @mogoh I've just come across these PRs and merged #100 |
Change implemented through #100 |
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.
This patch has been tested on our ~150 page CMS but I wouldn't for a second believe we use every feature of this plugin.