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

Convert drawing to static PNG (or SVG) #16

Open
kolibril13 opened this issue Jan 6, 2024 · 0 comments
Open

Convert drawing to static PNG (or SVG) #16

kolibril13 opened this issue Jan 6, 2024 · 0 comments

Comments

@kolibril13
Copy link
Owner

There are already two functions for that : TldrawMakeStaticPNG, TldrawMakeStaticSVG.
However, after converting the PNG (or SVG) is still a widget, and therefore won't be displayed after notebook reopening and also won't be displayed on GitHub.

In order to make this work, the jupyter cell output would need to be converted to the type image/jpeg.
This is an unsolved ipywidget issue, but this minimal example might help figuring thing out:
jupyter-widgets/ipywidgets#3874

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

No branches or pull requests

1 participant