Where are the image files located?

Joplin 1.7.11 (prod, linux)
Hi, I'm trying to locate the image files stored in Joplin. I have created them by copy and then paste into joplin, which creates a link like:

![483ba8a198cc917682e420adf25d78fb.png]:/8012dce9165b437c95d0d42041c32aa1)

the file renders in joplin as expected.

Based on reading in the forum here I expected to find the file in:
~/.config/joplin-desktop/resources
I indeed find many png files there but not the one I'm looking for.

To check, I also copied the the sqlite database and opened it, found my note and the reference to the resource and indeed it refers to this file:

SELECT * FROM resources WHERE id == '8012dce9165b437c95d0d42041c32aa1'
id title etc...
8012dce9165b437c95d0d42041c32aa1 483ba8a198cc917682e420adf25d78fb.png ...

The reason I am doing this is I would like to render two images side by side, e.g.

<table><tr>
<td> <img src="/home/mark/.config/joplin-desktop/resources/483ba8a198cc917682e420adf25d78fb.png" alt="Drawing" style="width: 250px;"/> </td>
<td> <img src="/home/mark/.config/joplin-desktop/resources/fdde1f0f440a4cec9315b6c4a73ef941.png" alt="Drawing" style="width: 250px;"/> </td>
</tr></table>

The file fdde1f0f440a4cec9315b6c4a73ef941.png exists in the resources folder, it's an old file from April 2020. The newer file that does not show up (483ba8a198cc917682e420adf25d78fb.png) is not in the folder, so it renders side by side with the missing file showing an image icon with the text 'Drawing' and the other file rendering correctly to the right of it.

image

I am wondering whether the image files are now stored somewhere else but searching my drive I could not find them...

thanks

@markddesimone welcome to the forum.

I think I can see the problem. The file has been given a name of 483ba8a198cc917682e420adf25d78fb.png but the file in the resources folder will be 8012dce9165b437c95d0d42041c32aa1.png. I don't know why Joplin does this and gives a random file name, but it is everything after :/ that is the actual reference for the resource / attachment (minus any file extension). The resources are stored using id not title.

Try:

<table><tr>
<td> <img src="/home/mark/.config/joplin-desktop/resources/8012dce9165b437c95d0d42041c32aa1.png" alt="Drawing" style="width: 250px;"/> </td>
<td> <img src="/home/mark/.config/joplin-desktop/resources/fdde1f0f440a4cec9315b6c4a73ef941.png" alt="Drawing" style="width: 250px;"/> </td>
</tr></table>

Also unless you specifically need to use an HTML table and external (to Joplin) style links you could use Markdown and internal links:

| Picture 1 | Picture 2 |
| --- | --- |
| ![](:/8012dce9165b437c95d0d42041c32aa1) | ![](:/fdde1f0f440a4cec9315b6c4a73ef941) |

or

|
| ![](:/8012dce9165b437c95d0d42041c32aa1) | ![](:/fdde1f0f440a4cec9315b6c4a73ef941) |

if you do not want header rows.

1 Like

@dpoulton, thanks so much. that's perfect. Also your tip for using a table to display images was very helpful.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.