I have this image of 128 x 128 pixels and RGBA saved in bytes in my memory. But
from PIL import Image image_data = ... # byte values of the image image = Image.frombytes('RGBA', (128,128), image_data) image.show()
throws an exception
ValueError: insufficient image data
Why? What am I doing wrong?
python pillow
Michael dorner
source share