Images
Trilium supports storing and displaying images. Supported formats are PNG, JPEG, GIF, BMP, WebP, AVIF and SVG.
An image can be uploaded in the form of note's attachment or as a standalone note placed into the note tree. Its reference can be copied into a text note, in order to display it in the text itself.
Uploading images
To add an image to the note:
- Simply drag it from file explorer onto the note editor inside Trilium and the image will be uploaded.
- Alternatively, in the Formatting toolbar, press the Attach file button and select Image.
- On the Mobile Frontend, the same menu also offers Camera, which takes a photo and inserts it.
- You can also copy and paste an image from web (see section below).
Where the image goes depends on the cursor. In an empty paragraph, the image is displayed on a line of its own. In a list item, or after some text in a paragraph, the image is inserted In line, inside the text. To change it afterwards, use the Image position button described in the alignment section below.
Clipboard & automatic download of images
Trilium has a special handling for images copied to and pasted from the clipboard.
- For a mix of text and images, the images are downloaded automatically by the server (or desktop app, depending on what is being used).
- This means that the image must be publicly accessible and reachable from wherever Trilium is running. Inaccessible images will end up as broken images.
- If a single image is pasted into Trilium, it will prefer the image that comes in the clipboard. This makes it possible to copy images that Trilium would not otherwise be able to reach, such as Google Chat, Slack, etc.
- When a text with images is copied from Trilium and pasted in another app (such as Microsoft Word or LibreOffice Writer), the images will be preserved.
The automatic download of images is enabled by default and can be toggled from Options → Media → Download images automatically.
Configuring the images
Clicking an image reveals a popup with multiple options.
Alignment
The first button of the popup, Image position, shows the icon of the image's current position. It opens a menu that groups the positions by how text runs around the image:
| Icon | Option | Preview | Description |
|---|---|---|---|
| In line | ![]() | The image sits inside a paragraph, like a large character, and moves with the text around it. Use drag & drop or cut-paste to move it around. | |
| Break text → Align left, Align center or Align right | ![]() | The image is displayed on a line of its own, at the left, in the center or at the right; text continues above and below it but not beside it. | |
| Wrap text → Align left or Align right | ![]() | The image is displayed at the left or the right, and the text flows beside it. |
Drawing over an image
To draw or write over an image, press the Convert image to a drawing canvas button of its toolbar. The image becomes a drawing canvas that shows all of it, locked in place. See the drawing canvases section of Include Note.
Compression
Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in Options → Media.
If you want to save images in their original resolution, it is recommended to save them as attachment to note (look for the contextual menu in Note menu → Import files).
Aligning images side-by-side
There are generally two ways to display images side by side:
- If they are roughly the same size, simply make the two images in-line, according to the alignment section above. The images can be dragged & dropped onto the same line.
- If they are on different size, create a table with invisible borders.


