There is a problem in the library
from JPEGdecoder import jpeg
def draw() :
print('decode')
jpeg('image.jpeg', callback=draw).render(32, 32)
Traceback (most recent call last):
File "<stdin>", line 12, in <module>
File "JPEGdecoder.py", line 613, in processFile
MemoryError: memory allocation failed, allocating 128 bytes
There is a problem in the library