Restoring deleted images in a note

Operating system

Windows

Joplin version

3.3.9

Desktop version info

Joplin 3.3.9 (prod, win32)

Device: win32, x64
Client ID: 30b6623e3131421f81b87297dcb9b867
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes
Alternative instance ID: -

Revision: 5d0fa75

Automatic Backlinks to note: 3.0.3
Backup: 1.4.3
Bidirectional Links: 0.2.0
Freehand Drawing: 3.0.1
Note Link System: 0.8.0

Editor

Rich Text Editor

What issue do you have?

Most of my notes consist of text and a pasted image, sometimes by accident I delete the image (I'm not sure how, but I do without touching the delete button, usually pressing enter).
I have tried the undo function but this doesn't restore the image, I suspect the image is still in the resources but I have no way of telling which file I need
Is there a simple way of restoring images, I'm probably missing something obvious
Thank

If you know the filename of the image, go to tools, note attachments in the desktop app. Then you can search by filename (it is case sensitive) and copy the id next to the relevant image.

Then in the markdown editor, for your note you can add the image back in by typing something like this with the filename and id replaced with your values:
![MyFile.jpg](:/MyID)

That's the point I don't know the image name, it's just a pasted image from a screenshot or similar, I assume Joplin assigns a name to it for reference

The only thing you can do then is go to %home%/.config/joplin-desktop and look in the resources folder.

You can sort the files in there by date in Windows explorer and then copy to the latest file from there and rename it to .jpg so you can open it and check if that is the matching resource. If not then try the next latest. Then you will have the id as per my previous suggestion. If you have uploaded multiple attachments since then, you could instead try to match the create / modify timestamp of the file to roughly when you inserted the image, to work out which is the correct resource.

DISCLAIMER: Do not change anything in the resources folder directly but copy the file first before you rename it

1 Like

The revision history feature might help with this. See Note history now in Joplin | Joplin.

1 Like