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

Fixing size handling #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixing size handling #126

wants to merge 1 commit into from

Conversation

lietzi
Copy link

@lietzi lietzi commented Mar 23, 2017

When images have different orientations (portrait / landscape) usualy the resizing to eg. 1200x1200 the long side should fit into this values and the short side should be resized according to fit aspectRatio.

Actually the task ignores images, when one side of the original image is smaller, than the according sizeTo-value.
e.g. the original image is 1500x500 and it should fit into 1200x1200 actually the task generates an image with 1500x500 instead of 1200x400.

This Bug is fixed with this changes.

When images have different orientations (portrait / landscape) usualy the resizing to eg. 1200x1200 the long side should fit into this values and the short side should be resized according to fit aspectRatio.

Actually the task ignores images, when one side of the original image is smaller, than the according sizeTo-value.
e.g. the original image is 1500x500 and it should fit into 1200x1200 actually the task generates an image with 1500x500 instead of 1200x400.

This Bug is fixed with this changes.
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.

1 participant