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 method
let origin = CGPoint(x: (size.width - scaledSize.width) / 2.0, y: (size.height - scaledSize.height) / 2.0)
with
AND
UIGraphicsBeginImageContextWithOptions(size, false, 0.0)
with
UIGraphicsBeginImageContextWithOptions(scaledSize, false, 0.0)
Can i add a PR ?
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.imageAspectScaledmethodwith
AND
with
Can i add a PR ?