We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I called UIImage.af_imageAspectScaled(size: CGSize(2400, 2400))
UIImage.af_imageAspectScaled(size: CGSize(2400, 2400))
white padding around the image
AlamofireImage 3.5.2
If anyone encounters this problem:
Basically, replace the line inside UIImage.imageAspectScaled method
UIImage.imageAspectScaled
let origin = CGPoint(x: (size.width - scaledSize.width) / 2.0, y: (size.height - scaledSize.height) / 2.0)
with
let origin = .zero
AND
UIGraphicsBeginImageContextWithOptions(size, false, 0.0)
UIGraphicsBeginImageContextWithOptions(scaledSize, false, 0.0)
Can i add a PR ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What did you do?
I called
UIImage.af_imageAspectScaled(size: CGSize(2400, 2400))
What did you expect to happen?
What happened instead?
white padding around the image
AlamofireImage 3.5.2
If anyone encounters this problem:
Basically, replace the line inside
UIImage.imageAspectScaled
methodwith
AND
with
Can i add a PR ?
The text was updated successfully, but these errors were encountered: