Skip to content

Commit 9faeb4a

Browse files
committed
[feat]: png representation
1 parent cfba89d commit 9faeb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ScriptToolkit/NSImageExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public extension NSImage {
6262
/// Saves the PNG representation of the current image to the HD.
6363
///
6464
/// - parameter url: The location url to which to write the png file.
65-
func savePNGRepresentationToURL(url: URL, onlyChange: Bool) throws {
65+
func savePNGRepresentationToURL(url: URL, onlyChange: Bool = true) throws {
6666
if let png = self.PNGRepresentation {
6767
if let originalData = try? Data(contentsOf: url) {
6868
if onlyChange && (png == originalData) {

0 commit comments

Comments
 (0)