Skip to content

Commit 9fb26e2

Browse files
committed
🐛 fixes #24 no JPEG compression when saving the file
1 parent 9a28554 commit 9fb26e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/ChangeMenuBarColor/Extensions/NSImage+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension NSImage {
2020
return nil
2121
}
2222

23-
return bitmapImage.representation(using: .jpeg, properties: [:])
23+
return bitmapImage.representation(using: .jpeg, properties: [NSBitmapImageRep.PropertyKey.compressionFactor : 1])
2424
}
2525

2626
var height: CGFloat {

0 commit comments

Comments
 (0)