Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix SDWebImageDecoder to obey the orientation tag

  • Loading branch information...
commit 0d14e54214bb0181341fd3939035d36d0a41cecc 1 parent c474512
@dittos dittos authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.