UprootLabs / poly-flif

:camera: A poly-fill for the FLIF image format.
https://uprootlabs.github.io/poly-flif/
Other
244 stars 11 forks source link

Maximum Image Size #45

Open ibrokemypie opened 6 years ago

ibrokemypie commented 6 years ago

Using the latest release with one 7.9MB and one 2.8MB flif, neither render and this is output to the console.

Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 33554432, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 flif-stillonly.js:44:383

hrj commented 6 years ago

Did you try those suggestions in the makefile? 32MB was sufficient for even the large images I was testing with, but we can probably bump it up further.

grinapo commented 6 years ago

Please update the title with at least including "Cannot enlarge memory arrays", thanks!