File "/home/jan/my_script.py", line 230, in save
img = Image.fromarray(image, 'RGB')
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2187, in fromarray
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2137, in frombuffer
return frombytes(mode, size, data, decoder_name, args)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2070, in frombytes
im.frombytes(data, decoder_name, args)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 741, in frombytes
s = d.decode(data)
OverflowError: size does not fit in an int
Hi,
I am getting an error very similar to #1475 with the
Pillow==3.4.2, that is supposed to be fixed.Actually I'm getting:
Details about my image are following:
shape = (31000, 30030, 3)
dtype = uint8
My Python version is
Python 2.7.12