From f800a52f1c6eb409760bf14a5af5a636f3391100 Mon Sep 17 00:00:00 2001 From: Reid Main Date: Sat, 15 Dec 2012 17:59:00 -0500 Subject: [PATCH] Fixed bug where decodedImageWithImage: ignored image scale and orientation. --- SDWebImage/SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageDecoder.m b/SDWebImage/SDWebImageDecoder.m index 8d8d2bff..1b219c99 100644 --- a/SDWebImage/SDWebImageDecoder.m +++ b/SDWebImage/SDWebImageDecoder.m @@ -29,7 +29,7 @@ CGContextRelease(context); - UIImage *decompressedImage = [UIImage imageWithCGImage:decompressedImageRef]; + UIImage *decompressedImage = [UIImage imageWithCGImage:decompressedImageRef scale:image.scale orientation:image.imageOrientation]; CGImageRelease(decompressedImageRef); return decompressedImage; }