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

Incorrect image size after crop #11

Open
Jakooth opened this issue Jun 8, 2017 · 0 comments
Open

Incorrect image size after crop #11

Jakooth opened this issue Jun 8, 2017 · 0 comments

Comments

@Jakooth
Copy link

Jakooth commented Jun 8, 2017

For example try to crop image with size 2000x1300 to 1920x1080.
The result will be image with size of 1919x1279.

This is fixing the problem on line 300:
--$optimalWidth = $dimensionsArray['optimalWidth'];
--$optimalHeight = $dimensionsArray['optimalHeight'];
++$optimalWidth = ceil($dimensionsArray['optimalWidth']);
++$optimalHeight = ceil($dimensionsArray['optimalHeight']);

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

No branches or pull requests

1 participant