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

Consider the image's scale when converting to grayscale #8

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

LinkAndreas
Copy link

Fixes an issue in UIImageExtension's toGrayscale() method. The conversion did not consider the image's scale. On some devices, like the iPhone 6s Plus or iPad Pro, images that were converted to grayscale using this method turned out blurry.

The fix considers the image's scale when calculating target width and height.

@Jeehut Jeehut merged commit c362c5c into FlineDev:stable Oct 22, 2018
This pull request was closed.
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.

2 participants