asciinema / asciicast2gif

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

Corrupt / Degraded gif Output #49

Closed ossie-git closed 2 years ago

ossie-git commented 6 years ago

Hi,

I recently started using asciicast2gif and have successfully used it a number of times. I use the Docker image

However, while processing a somewhat long demo, the results were less than optimal and the screen output looks wrong

Here is the command:

docker run --rm -v $PWD:/data asciinema/asciicast2gif demo.cast.1 demo.cast.1.gif                                     ==> Loading demo.cast.1...
==> Spawning PhantomJS renderer...
==> Generating frame screenshots...
==> Combining 607 screenshots into GIF file...
gifsicle: warning: huge GIF, conserving memory (processing may take a while)
==> Done.

What it looks like via asciinema - asciinema_play.png asciinema_play

What the generated gif looks like - asciicast2gif.jpg

asciicast2gif

I haven't run into this problem in shorter casts. Any ideas? Thanks.

ku1ik commented 5 years ago

That looks quite bad indeed. It's either imagemagick or gifsicle doing something fuzzy here.

tucked commented 5 years ago

Just hit this... -S 1 helped

socketbox commented 3 years ago

@tucked 's workaround cleared up the artifacts/ghosting but not being able to increase the size of the font is less than ideal.

ku1ik commented 2 years ago

You may want to try out https://github.com/asciinema/agg , which is a successor to asciicast2gif I just released.