From 0cd7f6953b6da8add0b8a8856fb146d37212dea7 Mon Sep 17 00:00:00 2001 From: andybee Date: Wed, 4 Apr 2012 13:34:55 +0200 Subject: [PATCH] Allowed original image scale to be preserved. --- SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDecoder.m b/SDWebImageDecoder.m index 1eecee0..7fed5ec 100644 --- a/SDWebImageDecoder.m +++ b/SDWebImageDecoder.m @@ -116,7 +116,7 @@ static SDWebImageDecoder *sharedInstance; CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGContextRelease(context); - UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef]; + UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef scale:image.scale orientation:UIImageOrientationUp]; CGImageRelease(decompressedImageRef); return SDWIReturnAutoreleased(decompressedImage); }