Skip to content

Commit dbf2e87

Browse files
authored
Merge pull request #4 from SDWebImage/bugfix_CMYK
Fix the encoding compatibility for CMYK image
2 parents ad73320 + 3ccb72d commit dbf2e87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SDWebImageFLIFCoder/Classes/SDImageFLIFCoder.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ - (FLIF_IMAGE *)sd_encodedFLIFFrameWithImage:(nonnull UIImage *)image {
374374
.bitsPerComponent = (uint32_t)CGImageGetBitsPerComponent(imageRef),
375375
.bitsPerPixel = (uint32_t)CGImageGetBitsPerPixel(imageRef),
376376
.colorSpace = CGImageGetColorSpace(imageRef),
377-
.bitmapInfo = bitmapInfo
377+
.bitmapInfo = bitmapInfo,
378+
.renderingIntent = CGImageGetRenderingIntent(imageRef)
378379
};
379380
vImage_CGImageFormat destFormat = {
380381
.bitsPerComponent = 8,

0 commit comments

Comments
 (0)