Skip to content
Browse files

Merge pull request #167 from ltbl/master

Fix SDWebImageDecoder to obey the orientation tag
  • Loading branch information...
2 parents c474512 + 0d14e54 commit ef8bced49d437b4b4a088f2919bd0849bfaaf33b @rs committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDWebImage/SDWebImageDecoder.m
View
2 SDWebImage/SDWebImageDecoder.m
@@ -116,7 +116,7 @@ + (UIImage *)decodedImageWithImage:(UIImage *)image
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);
}

0 comments on commit ef8bced

Please sign in to comment.
Something went wrong with that request. Please try again.