ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to save clipboard image as file

sant527 opened this issue · 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

commented

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

You can also use this lib. Check the README