We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53056b commit f526d88Copy full SHA for f526d88
SDWebImageWebPCoder/Classes/SDImageWebPCoder.m
@@ -435,7 +435,7 @@ - (nonnull CGColorSpaceRef)sd_colorSpaceWithDemuxer:(nonnull WebPDemuxer *)demux
435
colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData);
436
WebPDemuxReleaseChunkIterator(&chunk_iter);
437
if (colorSpaceRef) {
438
- // `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
439
CGColorSpaceModel model = CGColorSpaceGetModel(colorSpaceRef);
440
if (model != kCGColorSpaceModelRGB) {
441
CGColorSpaceRelease(colorSpaceRef);
0 commit comments