Skip to content

Commit

Permalink
Use relevant extension for temporary file
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and abey79 committed Jun 17, 2023
1 parent 3c4ccdc commit e52fa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageGrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=N

def grabclipboard():
if sys.platform == "darwin":
fh, filepath = tempfile.mkstemp(".jpg")
fh, filepath = tempfile.mkstemp(".png")
os.close(fh)
commands = [
'set theFile to (open for access POSIX file "'
Expand Down

0 comments on commit e52fa8f

Please sign in to comment.