Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

experiment - save animation frames as PNG #1601

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jameshadfield
Copy link
Member

We've long wanted the ability to save animations for later use (in presentations etc) I spent an hour trying to implement this by saving each frame as a PNG using html2canvas with the intention of then using ffmpeg to stitch & crop them into a video. It kind-of worked... for small phylogenies the images look good but for larger ones the tree panel was blank (apart from the legend). I presume this is a DOM-complexity thing, but I haven't looked into it!

We've long wanted the ability to save animations for later use (in presentations etc)
I spent an hour trying to implement this by saving each frame as a PNG using
html2canvas with the intention of then using ffmpeg to stitch & crop them
into a video. It kind-of worked... for small phylogenies the images look good
but for larger ones the tree panel was blank (apart from the legend). I presume
this is a DOM-complexity thing, but I haven't looked into it!
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-experiment-save-8v1z7j November 23, 2022 02:33 Inactive
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
No open projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants