holxsam / tldraw-in-obsidian

A plugin to integrate Tldraw into Obsidian.
Apache License 2.0
199 stars 10 forks source link

[Bug]: Image stored in Base64 exceeds file limit #46

Closed 0PandaDEV closed 1 month ago

0PandaDEV commented 1 month ago

I was using the Obsidian plugin of tldraw. While trying to add a image the entire canvas crashed because the image was added in base64 it exceeded the character limit on Obsidian which meant I lost my entire progress.

jon-dez commented 1 month ago

I'm sorry to hear that this happened. You might be able to restore the file if it exists in the file recovery tab in Obsidian.

image image image

I will investigate this issue soon. For now avoid having too much image data in your drawings.

jon-dez commented 1 month ago

@0PandaDEV I've implemented a workaround, Here: https://github.com/holxsam/tldraw-in-obsidian/releases/tag/1.5.0

0PandaDEV commented 1 month ago

Thank you i will test this and come back here if the issue was sucessfully resolved.

jon-dez commented 1 month ago

@0PandaDEV I just want to let you know that images are no longer stored in base64 when editing drawings that are in .md files. If you have any images that are stored in those .md files you can ctrl+a then ctrl+v when editing a drawing to move those images from the markdown file into the indexedDB of Obsidian.