Revert "Fixed Alpha chanel detection when decoding images."
This reverts commit e6ede110.
Showing
1 changed file
with
1 additions
and
3 deletions
@@ -100,9 +100,7 @@ static SDWebImageDecoder *sharedInstance; | @@ -100,9 +100,7 @@ static SDWebImageDecoder *sharedInstance; | ||
100 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | 100 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); |
101 | CGImageAlphaInfo alphaInfo = CGImageGetAlphaInfo(imageRef); | 101 | CGImageAlphaInfo alphaInfo = CGImageGetAlphaInfo(imageRef); |
102 | 102 | ||
103 | - BOOL imageHasAlphaInfo = (alphaInfo != kCGImageAlphaNone && | ||
104 | - alphaInfo != kCGImageAlphaNoneSkipFirst && | ||
105 | - alphaInfo != kCGImageAlphaNoneSkipLast); | 103 | + BOOL imageHasAlphaInfo = (alphaInfo != kCGImageAlphaNone); |
106 | 104 | ||
107 | int bytesPerPixel = imageHasAlphaInfo ? 4 : 3; | 105 | int bytesPerPixel = imageHasAlphaInfo ? 4 : 3; |
108 | CGBitmapInfo bitmapInfo = imageHasAlphaInfo ? kCGImageAlphaPremultipliedLast : kCGImageAlphaNone; | 106 | CGBitmapInfo bitmapInfo = imageHasAlphaInfo ? kCGImageAlphaPremultipliedLast : kCGImageAlphaNone; |
-
Please register or login to post a comment