Allowed original image scale to be preserved.
This commit is contained in:
parent
61df06926a
commit
0cd7f6953b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue