Skip to content

Commit 2acebf8

Browse files
authored
Merge pull request #25 from SDWebImage/bugfix_CMYK
Fix the encoding compatibility for CMYK image
2 parents 64ec69d + 6155a8c commit 2acebf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SDWebImageAVIFCoder/Classes/SDImageAVIFCoder.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ - (nullable NSData *)encodedDataWithImage:(nullable UIImage *)image format:(SDIm
110110
.bitsPerComponent = (uint32_t)bitsPerComponent,
111111
.bitsPerPixel = (uint32_t)bitsPerPixel,
112112
.colorSpace = CGImageGetColorSpace(imageRef),
113-
.bitmapInfo = bitmapInfo
113+
.bitmapInfo = bitmapInfo,
114+
.renderingIntent = CGImageGetRenderingIntent(imageRef)
114115
};
115116
vImage_CGImageFormat destFormat = {
116117
.bitsPerComponent = 8,

0 commit comments

Comments
 (0)