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

(WIP) thumbnail fetcher prototype #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

davepagurek
Copy link
Collaborator

This is an attempt to see how feasible something like this would be. The idea is to open a Puppeteer window with the sketch we want to load, set the display density so that we can get a decently high res image, and then capture the contents of the canvas.

Some major drawbacks of this approach:

  • Haven't figured out yet how to hook these dynamically saved images into the Image component
  • Takes some time to load and save each one (I added a semaphore to make sure only 3 puppeteer windows run at once, I accidentally had all of them at once at first and my laptop did not like it)
  • Takes a bad screenshot of any sketch that needs user interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant