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 41a9fcc commit c8718f6Copy full SHA for c8718f6
Sources/coreml-stable-diffusion-swift/helper/HelperImage.swift
@@ -18,6 +18,7 @@ import AppKit
18
/// - toSize: Fit to size
19
/// - Returns: NSImage
20
@available(macOS 13.1, *)
21
+@MainActor
22
public func getNSImage(from data : Data?, cropped toSize : NSSize? = nil) async -> NSImage? {
23
24
guard let value = data else{
0 commit comments