Skip to content
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

3.0 - screenshot/gif of lookatme slides via selenium/html output #203

Closed
d0c-s4vage opened this issue Jan 1, 2023 · 0 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@d0c-s4vage
Copy link
Owner

Describe the Feature Request
'
A screenshot utility script should exist in bin/ that is part of the development tools for lookatme. It should be able to take slides and a series of keystrokes, and render a gif of the slides in action.

E.g.

bin/lookatme-screenshot test.md -o slides.gif --gif --keys scroll_down:3,j:1.5,j:1.5,j:1.5 --width X --height Y

This should scroll to the bottom of the first slide over three seconds, and press "j" (or next slide") with a 1.5s delay in between.

Additional notes

One approach:

  1. Create presentation from markdown source
  2. Generate canvases after each keystroke
  3. Convert each canvas to raw html
  4. Load each html into chrome via selenium, with browser width/height set to the provided width/height
  5. Save screenshot of each html into a folder
  6. Create a gif with provided delays from the screenshots (maybe using ImageMagick's convert?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant