From f526d88969b7434446a60eab91a6c1e873cc7805 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 1 Apr 2019 21:18:15 +0800 Subject: [PATCH] Update color space filter comment when create icc profile color space --- SDWebImageWebPCoder/Classes/SDImageWebPCoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m index 61f29fe..b1fb2fc 100644 --- a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m +++ b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.m @@ -435,7 +435,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);