Abrir imagen PIL del archivo de bytes
yo tengoesta imagen con un tamaño de 128 x 128 píxeles y RGBA almacenados como valores de bytes en mi memoria. Pero
from PIL import Image
image_data = ... # byte values of the image
image = Image.frombytes('RGBA', (128,128), image_data)
image.show()
lanza la excepción
ValueError: no hay suficientes datos de imagen
¿Por qué? ¿Qué estoy haciendo mal?