diff --git a/SDWebImage/SDWebImageDecoder.m b/SDWebImage/SDWebImageDecoder.m index d6db0b98..623255be 100644 --- a/SDWebImage/SDWebImageDecoder.m +++ b/SDWebImage/SDWebImageDecoder.m @@ -116,7 +116,7 @@ static SDWebImageDecoder *sharedInstance; CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGContextRelease(context); - UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef scale:image.scale orientation:UIImageOrientationUp]; + UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef scale:image.scale orientation:image.imageOrientation]; CGImageRelease(decompressedImageRef); return SDWIReturnAutoreleased(decompressedImage); }