From 575e7c5757ff1304c24fd35bdd4d377d2066f03a Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Tue, 8 Sep 2015 11:51:54 -0400 Subject: keep the scale when resizing an image --- iPhone/GTMUIImage+Resize.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iPhone') diff --git a/iPhone/GTMUIImage+Resize.m b/iPhone/GTMUIImage+Resize.m index c22515e..0965c3e 100644 --- a/iPhone/GTMUIImage+Resize.m +++ b/iPhone/GTMUIImage+Resize.m @@ -156,7 +156,7 @@ GTM_INLINE CGSize swapWidthAndHeight(CGSize size) { return nil; } - UIGraphicsBeginImageContext(bounds.size); + UIGraphicsBeginImageContextWithOptions(bounds.size, NO, self.scale); CGContextRef context = UIGraphicsGetCurrentContext(); switch (orientation) { -- cgit v1.2.3