python how to get image from clipboard code example
Example 1: python how to access clipboard
import clipboard
clipboard.copy("abc") # now the clipboard content will be string "abc"
text = clipboard.paste() # text will have the content of clipboard
Example 2: python clipboard to image
from PIL import ImageGrab
image = ImageGrab.grabclipboard()
image.save('clipboard.jpg','JPG')