Open Pandahisham opened 8 years ago
I installed python3.5 in win7, it is worked right. The PIL is corresponding to 3.3.6, which I have packaged with ImagePaste.
You may try with below steps:
try:
from PIL import ImageGrab
from PIL import ImageFile
except ImportError:
import sys
from PIL import ImageGrab
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
im = ImageGrab.grabclipboard()
im.save('pic.png','PNG')
`
Traceback (most recent call last):
File "C:\Users\Hisham\Desktop\test.py", line 11, in
`
Pls take a screen capture to make sure there is a picture in clipboard, and then run test.py
I did take a screenshot , it was in my clipboard , i was able to paste in other place . is it related to win 10 ?
Maybe, I have tested in win7, it is ok.
I have python 3 installed is that the reason ? PIL seems to support py 2 only