From 2d27a83a8b404a069b6ec7ff77675590a036af4a Mon Sep 17 00:00:00 2001 From: Michael Robinson Date: Thu, 12 Mar 2015 22:38:58 +1300 Subject: [PATCH] Use 0.0 instead of self.size as the scale, defaulting to device scale. See https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIGraphicsBeginImageContextWithOptions for details --- UIImage+Resize.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UIImage+Resize.m b/UIImage+Resize.m index 60e4ea9..fb2d462 100644 --- a/UIImage+Resize.m +++ b/UIImage+Resize.m @@ -76,7 +76,7 @@ -(UIImage*)resizedImageToSize:(CGSize)dstSize ///////////////////////////////////////////////////////////////////////////// // The actual resize: draw the image on a new context, applying a transform matrix - UIGraphicsBeginImageContextWithOptions(dstSize, NO, self.scale); + UIGraphicsBeginImageContextWithOptions(dstSize, NO, 0.0); CGContextRef context = UIGraphicsGetCurrentContext();