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

Rounding error #19

Merged
merged 2 commits into from
Jan 6, 2016
Merged

Rounding error #19

merged 2 commits into from
Jan 6, 2016

Conversation

Danack
Copy link
Contributor

@Danack Danack commented Dec 30, 2015

This PR ought to be checked. I've copied and pasted it from Imagick, but it needs a second set of eyes on it.

Basically it 'fixes' the rounding to be what most people would expect, and should match the behaviour of CLI GraphicsMagick. Fixes #7

I put the legacy flag in there so that people who rely on the current behaviour don't get too upset. TBH, they should probably just resize the image directly themselves.

The 'rounding' now should round correctly. Before it was effectively doing a floor() operation. Fixes vitoc#7
vitoc added a commit that referenced this pull request Jan 6, 2016
@vitoc vitoc merged commit 169b3c6 into vitoc:master Jan 6, 2016
@Danack
Copy link
Contributor Author

Danack commented Jan 6, 2016

fyi a user was complaining that the equivalent change in Imagick broken something - https://bugs.php.net/bug.php?id=71283

I've asked them to provide more info as I can't reproduce - but I suggest holding of on tagging the next release until the issue is resolved.

@vitoc
Copy link
Owner

vitoc commented Jan 30, 2016

Looks like this the similar Imagick issue had been resolved.

@Danack
Copy link
Contributor Author

Danack commented Jan 30, 2016

And more importantly, no one has complained yet.

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.

Different widths?
2 participants