Giter VIP home page Giter VIP logo

Comments (7)

ku1ik avatar ku1ik commented on September 17, 2024 5

If you append .gif to your recording URL now you get instructions on how to generate gif animation for it. Example: https://asciinema.org/a/113463.gif

from asciinema-player.

techtonik avatar techtonik commented on September 17, 2024

https://github.com/tav/asciinema2gif/

from asciinema-player.

ku1ik avatar ku1ik commented on September 17, 2024

I think the best way to implement this would be to use player's VT (https://github.com/asciinema/asciinema-player/blob/master/src/asciinema/player/vt.cljc) and its view (https://github.com/asciinema/asciinema-player/blob/master/src/asciinema/player/view.cljs), and the PhantomJS script similar (but more complex) to the one currently used for generating .png screenshot (https://github.com/asciinema/asciinema.org/blob/master/bin/rasterize).

This would give the best quality (the same as we have for .png on asciinema.org now), and would produce .gif with variable frame times (constant frame rate is unnecessary in our case and would produce bigger files and/or took longer time - this is what https://github.com/tav/asciinema2gif does right now).

/cc asciinema/asciinema-server#187
/cc #26
/cc tav/asciinema2gif#24

from asciinema-player.

ku1ik avatar ku1ik commented on September 17, 2024

Please try out https://github.com/asciinema/a2gif (I implemented the idea from #24 (comment)).

from asciinema-player.

techtonik avatar techtonik commented on September 17, 2024

I can't test this ability right now, but I will certainly do when I find the time. Thanks!

from asciinema-player.

oconnor663 avatar oconnor663 commented on September 17, 2024

I'm seeing a failure from the docker instructions provided by that .gif link:

docker run --rm -v $PWD:/data asciinema/asciicast2gif https://asciinema.org/a/tw4lOrVzXMcxdBeOnHBIOvvL8.cast demo.gif
==> Combining 105 screenshots into GIF file...
Killed
gifsicle:<stdin>: empty file
/app/main.js:697

from asciinema-player.

rosscdh avatar rosscdh commented on September 17, 2024

This issue still seems relevant?

from asciinema-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.