Allowed original image scale to be preserved.

This commit is contained in:
andybee 2012-04-04 13:34:55 +02:00
parent 61df06926a
commit 0cd7f6953b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}