Pasting same image twice should not duplicate the image but paste the same link

Steps to reproduce

  1. Copy an image, either from the web or a screenshot
  2. Paste it in a note, which automatically adds a link and the image is saved in the attachment folder.
  3. Paste the same image again in a different note, a new link is created and the image is duplicated in the attachments folder.

Expected result

App should ideally detect that the clipboard didn’t change and therefore paste the link to the existing version of the image instead of duplicating it.

Environment

  • Operating system: macOS 10.15
  • Obsidian version: 0.7.2
6 Likes

uhm… I am not sure this is a “bug”. I will move this to feature requests.

Cool. I updated the title.

There should be a way to quickly compute a hash for the pasted image and perhaps avoid having duplicated files? I think this would be very nice default feature.

Yes. You can add an image to a note in Obsidian and then either link the note in other notes using [[]] or transclude/embed the note in another note using ![[]].

1 Like

Great feature idea. This would go a long way towards reducing clutter in the attachments folder

1 Like