Guest User

Untitled

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