From 31856f3cdbac4f96f1b885430969bb4717976e9a Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 27 Feb 2019 19:50:37 +0800 Subject: [PATCH] Update color space filter comment when create icc profile color space --- SDWebImage/SDWebImageWebPCoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageWebPCoder.m b/SDWebImage/SDWebImageWebPCoder.m index 5a96b520..7c46108b 100644 --- a/SDWebImage/SDWebImageWebPCoder.m +++ b/SDWebImage/SDWebImageWebPCoder.m @@ -348,7 +348,7 @@ colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData); WebPDemuxReleaseChunkIterator(&chunk_iter); if (colorSpaceRef) { - // `CGImageCreate` does not support colorSpace other than RGB (such as Monochrome), we must filter the colorSpace mode + // We use RGB color model to decode WebP images currently, so we must filter out other colorSpace CGColorSpaceModel model = CGColorSpaceGetModel(colorSpaceRef); if (model != kCGColorSpaceModelRGB) { CGColorSpaceRelease(colorSpaceRef);