daledesilva / obsidian_ink

Other
265 stars 6 forks source link

Bake and Insert Sketch as Image #31

Open MrComputron opened 2 months ago

MrComputron commented 2 months ago

What's your idea? Similar to the "Lock" button, "bake" would convert the image to an embedded image (jpeg or png).

Why? How would it help you (or others)? It would make the image into a standard image type that can be shared using other means and would remove the editing buttons and interface from ink, allow for easy embedding elsewhere.

Any examples or references you think are worth pointing out?

Anything else?

daledesilva commented 2 months ago

Thanks for sharing!

This is actually already half built and would be the default behaviour once implemented.

All handwriting sections would just be images by default, that would get replace by the interactive section while editing.

It's delayed because it's not quite working on iPad yet.

If you're not on iPad, you can go into the ink folder and find that there should already be images being created you can use.

MrComputron commented 2 months ago

Fantastic news, thanks for the update. Would the option or choice available be to permanently bake the image (thereby removing the editing interface and UI elements, associated editing file etc.)?

Once I've finished editing the sketch it makes sense to me to erase any editing associations within the Vault.

daledesilva commented 2 months ago

If you erase the editing associations (The original file), then you won't be able to edit it again. So no, this won't be a function in the plugin. However, it will be embedded as an image, you could just delete the original ink file and it would still show the image. You could also uninstall ink and it will still show the image.

All of this when it's implemented that is.

MrComputron commented 2 months ago

I understand you wouldn't be able to edit again and I think that's okay. I don't need all my sketches to be editable forever, sometimes I want to just have it be complete and published and that's what I'm getting at I think.

But this is more a question of personal preference and file management within Obsidian - for me particularly because the sketch/writing files don't have any clear indication as to which file they are embedded in, just the date and time so if I want to make it "baked" as it were I need to check the date and click through the files with that prefix until I find the correct file and then delete it.

daledesilva commented 2 months ago

In the new version you can click the overflow icon on drawings and click open.

This takes you to the source file and should highlight it in the files pane. That should help.

Don't go deleting it yet though cause I haven't implemented it to run off the bakes files yet.

daledesilva commented 1 month ago

Just FYI, In the newest version (0.1.192), this functionality isn't possible any more.

It will come back in the future though, this is a transitional state while I continue developing related features and the necessary infrastructure.