pyscreenshot icon indicating copy to clipboard operation
pyscreenshot copied to clipboard

how to save clipboard image as file

Open sant527 opened this issue 3 years ago • 1 comments

I want to convert clipboard image content into an image

I tried

from PIL import ImageGrab
im = ImageGrab.grabclipboard() is macOS and Windows only
im.save(filename)

it says ImageGrab.grabclipboard() is macOS and Windows only

I think using this library its can be possible

sant527 avatar May 17 '21 15:05 sant527

Use latest Pillow version. https://pillow.readthedocs.io/en/latest/reference/ImageGrab.html

You can also use this lib. Check the README

ponty avatar May 30 '21 16:05 ponty