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

Allow pasting images in an encrypted note #170

Open
thibaultmol opened this issue Aug 12, 2024 · 7 comments
Open

Allow pasting images in an encrypted note #170

thibaultmol opened this issue Aug 12, 2024 · 7 comments
Labels
enhancement New feature or request feat-whole-note Feature: Whole note encryption

Comments

@thibaultmol
Copy link

thibaultmol commented Aug 12, 2024

I don't think it's possible atm to save an image (encrypted) inside of an encrypted note. That would be pretty convenient

@carlgustavh
Copy link

Hey mate, I have a bit of an annoying workaround for you:

  1. Convert your image to Base64 at https://www.base64-image.de
  2. Copy the Base64 and make an HTML element in your encrypted note where you put the Base64 after data:
<img src="data:">

@MaelImhof
Copy link

It can be done manually, but the plugin could propose to do it automatically when right-clicking on the image for example.

Or even better, a setting to do that automatically when an image is added into an encrypted note.

@meld-cp
Copy link
Owner

meld-cp commented Aug 15, 2024

An auto convert from clipboard to data:base64 image would be pretty neat. (It could even be a standalone plugin, if it doesn't already exist)

Source view would look quite bad if the user pastes in a large image though.

But I think it's worth an try 🤔

Drop in any use cases or implementation ideas here if you have them.

@meld-cp meld-cp added enhancement New feature or request feat-whole-note Feature: Whole note encryption labels Aug 15, 2024
@thibaultmol
Copy link
Author

@carlgustavh funnily enough, i was thinking of base64 as well but forget there was arleady a way to do it in obsidian.

but yeah as @MaelImhof and @meld-cp a slight automation would be nice. i'll do it manually for now

@meld-cp
Copy link
Owner

meld-cp commented Aug 16, 2024

Yeah, I can imagine a workflow for pasting an image from the clipboard or dragging one in and have this (or another) plugin convert it into an embedded base64 image.

Curious if anyone is using the beta versions by chance? I'd like to release it soon but I'm unsure how much it's been tested out in the wild.

@meld-cp
Copy link
Owner

meld-cp commented Aug 16, 2024

I haven't tested it but found this after a quick browse through the plugins:

https://github.com/ZackaryW/obsidian-image-inline

It may work quite well with the new editor in the beta releases.

I might give it a try on the weekend.

@meld-cp meld-cp added the not planned This issue is unlikely to be worked on label Sep 12, 2024
@Kurandur
Copy link

Kurandur commented Nov 5, 2024

@meld-cp The obsidian-image-inline plugin works perfectly for this. I only need this feature for encrypted notes. Would be interested in a pull-request, which integrates this into obsidian-encrypt? Then I would implement this.

@meld-cp meld-cp removed the not planned This issue is unlikely to be worked on label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat-whole-note Feature: Whole note encryption
Projects
None yet
Development

No branches or pull requests

5 participants