buffer is not large enough
Ed Summers <[email protected]> Tue, 18 Oct 2011 21:03:57 -0400
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <CABzDd=5Kc3wd=0t6PZ4ENZ-cgQvuWNtrxi8OaF5i5W_PkPF0jA@mail.gmail.com> |
I was wondering if anyone has seen the "buffer is not large enough"
error before. I'm attempting to read in a TIF and write out a JPG. Is
it possible that the TIF is corrupted somehow? It seems remarkably
small. If you want to reproduce I've put the TIF file up at
http://inkdroid.org/tmp/x.tif
//Ed
>>> import Image
>>> i = Image.open('x.tif')
>>> i.save('x.jpg')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1406, in save
self.load()
File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 158, in load
self.map, self.size, d, e, o, a
ValueError: buffer is not large enough
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig