Skip to content

Commit

Permalink
added CMYK unsupported color space model
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Mazzeo committed Dec 30, 2015
1 parent 740cd7f commit e709a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageDecoder.m
Expand Up @@ -40,7 +40,7 @@ + (UIImage *)decodedImageWithImage:(UIImage *)image {
CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef));
CGColorSpaceRef colorspaceRef = CGImageGetColorSpace(imageRef);

bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelIndexed);
bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelCMYK || imageColorSpaceModel == kCGColorSpaceModelIndexed);
if (unsupportedColorSpace)
colorspaceRef = CGColorSpaceCreateDeviceRGB();

Expand Down

0 comments on commit e709a04

Please sign in to comment.