Skip to content

Export drawings and animations #449

New issue

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

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

Already on GitHub? Sign in to your account

Closed
cdsmith opened this issue Mar 7, 2017 · 3 comments
Closed

Export drawings and animations #449

cdsmith opened this issue Mar 7, 2017 · 3 comments

Comments

@cdsmith
Copy link
Collaborator

cdsmith commented Mar 7, 2017

Today, in many browsers, students can already right-click on a drawing in the CodeWorld canvas, and save it as an image. That's great, but it's not very discoverable, and the steps to do it depend on the browser. We would like to make export to images a built-in capability of CodeWorld.

It's not possible today to export an animation in a common format. Students should be able to easily save their animations as either animated gif files, or as videos. It should be easy to upload them to YouTube, Facebook, or Instagram.

It's possible to consider the same thing for simulations; though, because simulations get random number sources, it's not entirely semantically sound. That is, you'd be better off labeling this as "record" rather than "export". Similarly, you could offer to "record" an interaction, as well.

Related: #22

@cdsmith
Copy link
Collaborator Author

cdsmith commented Mar 12, 2017

Some possibilities for animation:

  1. Export to animated gif: https://github.com/yahoo/gifshot
  2. Export to video: https://github.com/bgrins/videoconverter.js

Neither library looks terribly stable or maintained, though.

@venkat24
Copy link
Contributor

venkat24 commented Apr 12, 2017

This seems rather promising
https://github.com/spite/ccapture.js/

It supports exports to WebM and GIF. We could add start and stop recording buttons for stuff like simulations. WebM exporting is only on Chrome though. GIF support seems to be universal.

@cdsmith
Copy link
Collaborator Author

cdsmith commented Feb 22, 2019

The animation case of this was fixed with video recording feature during summer of haskell a couple years ago. I'll open a different bug for images.

@cdsmith cdsmith closed this as completed Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants