Merge pull request #167 from ltbl/master

Fix SDWebImageDecoder to obey the orientation tag
This commit is contained in:
Olivier Poitrey 2012-08-20 03:00:14 -07:00
commit ef8bced49d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}