tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
64 stars 35 forks source link

[feature] Embed project into image export #108

Closed robin7331 closed 2 years ago

robin7331 commented 2 years ago

As discussed on Twitter I'd love to open up an issue about this topic for further discussion.

Basic idea

Have tldraw embed its project (basically the contents of the *.tldraw file ?) into an exported image file. Why? Because this gives you a single file that can be embedded for visuals and also serves as a persistent copy of the project. All in the same place.

if you use this tool to create nice graphs that are embedded into a Google Doc or somewhere else you'll always have to keep the corresponding *.tldraw file somewhere else. If you want to edit your graph you'd have to find that tldraw file in order to be able to edit it later on.

Known problems

As you pointed out a tldraw file can become quite large if images are embedded. First, I think embedding project info into an export should be optional. Meaning it may have to have its own little checkbox somewhere (unchecked by default?) to enable this feature or not. In addition to that, a little warning may appear once an image gets embedded into the project and this checkbox has been set informing the user that the exported image could become quite large.

How do you feel about this?

robin7331 commented 2 years ago

Closing this as it is a duplicate of https://github.com/tldraw/tldraw-v1/issues/111