mpy-img-decoder
mpy-img-decoder copied to clipboard
library problem
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
Hi. You need at least 80kb of free RAM to use the library. As mentioned in README, it is only capable of rendering only small images which can fit in RAM