Traceback (most recent call last):
File "savebmp.py", line 13, in <module>
im.show()
File "C:\Python27\lib\site-packages\PIL\Image.py", line 1730, in show
_show(self, title=title, command=command)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 2480, in _show
_showxv(image, **options)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 2485, in _showxv
ImageShow.show(image, title, **options)
File "C:\Python27\lib\site-packages\PIL\ImageShow.py", line 51, in show
if viewer.show(image, title=title, **options):
File "C:\Python27\lib\site-packages\PIL\ImageShow.py", line 75, in show
image = image.convert(base)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 846, in convert
self.load()
File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 218, in load
"(%d bytes not processed)" % len(b))
IOError: image file is truncated (1312 bytes not processed)
What did you do?
1 open mspaint
2 alt+prtscr
3 run the code
What did you expect to happen?
The image from clipboard is shown on the screen:
What actually happened?
What versions of Pillow and Python are you using?
Python 2.7, Pillow 3.2.0