I imported a bunch of Joplin notes. The regular images (from the resources folder) load fine in the notes however some Joplin notes seem to have images loaded with <img width="300" height="300" src="../_resources/image.png"/> type of line.
Is there a way to get these images loaded properly so that my pages are not filled with giant broken rectangles and missing images.
I do not think that my issue is directly related to the resources folder, since regular images load fine. It is this certain type of image syntax that are in the notes that is causing the issue.
Currently, Obsidian has horrible or non-existent Find and Replace. But since these are just text files in an OS folder, you can use something like Notepad++ to search and replace across multiple files within your vault or even a single folder in the vault.
All you really need to do is replace “<img width=“300” height=“300” src=”…/_resources/" with “![[”, and replace “”/>" with “]]”. Assuming the images had all the same size parameters.
Obsidian uses ![[image_name.extension]] for the internal link to images with that name in your designated attachment folder.
That second replacement could be tricky because you might have "/> in other files and you don’t want to screw those up. I might suggest you practice with the multi file replacement in a single folder first and back up your vault before you do any of this.
Idea, for the second replacement, assuming your images are png files for example, you could replace “.png”/>" with “.png]]” to avoid accidentally matching other patterns of "/>.
Notepad++ is simple, but a wrong key and you could really mess up your vault.
I tested it on your exact string in two of my notes and it worked fine.
I didn’t test if the link would connect to images after it was created. I think you should test that first.
I closed Obsidian before I did the Notepad replacement.
In Notepad++,
Search>
Find in Files>
Find what
Replace with
Directory
Only other thing I can think of is to go back to Joplin and export to a different note system first that plays nicely with Obsidian import. The old middleman trick.
No idea, you would have to research which other note apps import images to Obsidian without parameters, or find a way to export from Joplin without parameters.
Did think of a way you might still use the Notepad idea, not sure if there is a way to use “mid string wildcard” to allow replacement of any size parameters but still have the known beginning and end of the string. Replace “abc %wildcard% xyz” with “”.