From f72dd8576ee77adec988dc1fe9777ee25f581a05 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Sat, 17 Jun 2023 12:55:58 +0200 Subject: [PATCH] Changed `grabclipboard()` to use PNG compression on macOS Before, a lossy JPG compression was used. --- src/PIL/ImageGrab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py index 39ecdf420..4de5c69fb 100644 --- a/src/PIL/ImageGrab.py +++ b/src/PIL/ImageGrab.py @@ -102,7 +102,7 @@ def grabclipboard(): + filepath + '" with write permission)', "try", - " write (the clipboard as JPEG picture) to theFile", + " write (the clipboard as «class PNGf») to theFile", "end try", "close access theFile", ]