Skip to content

Commit 9bab484

Browse files
committed
Fix the compatible for CMYK image for HEIF encoding
1 parent cebd7ec commit 9bab484

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ - (nullable NSData *)sd_encodedHEIFDataWithImage:(nonnull UIImage *)image qualit
385385
.bitsPerComponent = (uint32_t)CGImageGetBitsPerComponent(imageRef),
386386
.bitsPerPixel = (uint32_t)CGImageGetBitsPerPixel(imageRef),
387387
.colorSpace = CGImageGetColorSpace(imageRef),
388-
.bitmapInfo = bitmapInfo
388+
.bitmapInfo = bitmapInfo,
389+
.renderingIntent = CGImageGetRenderingIntent(imageRef)
389390
};
390391
vImage_CGImageFormat destFormat = {
391392
.bitsPerComponent = 8,

0 commit comments

Comments
 (0)