Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants