Permalink
Browse files

Fix SDWebImageDecoder to obey the orientation tag

  • Loading branch information...
1 parent c474512 commit 0d14e54214bb0181341fd3939035d36d0a41cecc @dittos dittos committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 0d14e54

Please sign in to comment.