asciinema / asciicast2gif

Generate GIF animations from asciicasts (asciinema recordings)
MIT License
1.2k stars 83 forks source link

Cache resources exhausted when converting to gif #74

Closed spalladino closed 2 years ago

spalladino commented 4 years ago

On a 30s cast, when running the conversion with default parameters, I'm getting the following error, and the resulting gif is truncated:

convert-im6.q16: cache resources exhausted `/tmp/tmp.Xh5BmZC2by/41.png' @ error/cache.c/OpenPixelCache/4083.

I'm on node 10.13.0, gifsicle 1.92, and imagemagick 6.9.10-23, on Ubuntu 19.10. Thanks!

niklashhh commented 4 years ago

I have the same issue. Seems like it's an issue in the GIF generation part... Having DEBUG=1 does not provide any info when it's generating the GIF.

niklashhh commented 4 years ago

The problem got solved by commenting out all of the resource policies from /etc/ImageMagick-6/policy.xml file.

https://github.com/ImageMagick/ImageMagick/issues/396

ku1ik commented 2 years ago

You can also try https://github.com/asciinema/agg , which is a successor to asciicast2gif.