mpy-img-decoder icon indicating copy to clipboard operation
mpy-img-decoder copied to clipboard

library problem

Open e135193 opened this issue 3 years ago • 1 comments

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

e135193 avatar Jul 20 '22 12:07 e135193

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

remixer-dec avatar Jul 20 '22 18:07 remixer-dec