Skip to content

Commit b6e2798

Browse files
authored
Merge pull request #8 from SDWebImage/bugfix_CMYK
Fix the encoding compatibility for CMYK image
2 parents 99ccc8b + c6be3db commit b6e2798

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SDWebImageBPGCoder/Classes/SDImageBPGCoder.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ - (BPGImage *)sd_encodedBPGFrameWithImage:(nonnull UIImage *)image {
304304
.bitsPerComponent = (uint32_t)bitsPerComponent,
305305
.bitsPerPixel = (uint32_t)bitsPerPixel,
306306
.colorSpace = CGImageGetColorSpace(imageRef),
307-
.bitmapInfo = bitmapInfo
307+
.bitmapInfo = bitmapInfo,
308+
.renderingIntent = CGImageGetRenderingIntent(imageRef)
308309
};
309310
vImage_CGImageFormat destFormat = {
310311
.bitsPerComponent = 16,

0 commit comments

Comments
 (0)