From 0d14e54214bb0181341fd3939035d36d0a41cecc Mon Sep 17 00:00:00 2001 From: Taeho Kim Date: Mon, 20 Aug 2012 18:06:51 +0900 Subject: [PATCH] Fix SDWebImageDecoder to obey the orientation tag --- SDWebImage/SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }