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

Resizing doesn't work #29

Open
adamsmaka opened this issue Aug 3, 2017 · 1 comment
Open

Resizing doesn't work #29

adamsmaka opened this issue Aug 3, 2017 · 1 comment

Comments

@adamsmaka
Copy link

print("Before resizing size", image?.size) let resizedImage = image?.resize(toSize: CGSize(width: 600, height: 600)) print("After resizing size", resizedImage?.size)
same size before and after resizing...

@zhishu520
Copy link

image
fix

        let horizontalRatio = toSize.width / self.size.width;
        let verticalRatio = toSize.height / self.size.height;

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

2 participants