Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- im = Image.open("tst0.jpg")
- im.thumbnail((150,150))
- im.save("tst.jpg")
- Traceback (most recent call last):
- File "<input>", line 1, in <module>
- File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1439, in save
- save_handler(self, fp, filename)
- File "/usr/lib/python2.6/dist-packages/PIL/JpegImagePlugin.py", line 471, in _s
- ave
- ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
- File "/usr/lib/python2.6/dist-packages/PIL/ImageFile.py", line 495, in _save
- e = Image._getencoder(im.mode, e, a, im.encoderconfig)
- File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 399, in _getencoder
- return apply(encoder, (mode,) + args + extra)
- TypeError: function takes at most 9 arguments (11 given)
- >>>
Add Comment
Please, Sign In to add comment