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 3a0aeba commit 5c62fabCopy full SHA for 5c62fab
swift/StableDiffusion/pipeline/CGImage+vImage.swift
@@ -58,7 +58,7 @@ extension CGImage {
58
let cgImage = uint8Image.makeCGImage(cgImageFormat:
59
.init(bitsPerComponent: 8,
60
bitsPerPixel: 3*8,
61
- colorSpace: CGColorSpaceCreateDeviceRGB(),
+ colorSpace: CGColorSpace(name: CGColorSpace.sRGB),
62
bitmapInfo: bitmapInfo)!)!
63
64
return cgImage
0 commit comments