Fix SDWebImageDecoder to obey the orientation tag

This commit is contained in:
Taeho Kim 2012-08-20 18:06:51 +09:00
parent c474512548
commit 0d14e54214
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);
}