Exported Images overflow in chrome #6854
-
I am looking over the Wiki for something that can help me modify the exported format and all I see are themes. Can someone assist me with the export to HTML so that the images are in a frame instead of overflowing with bars. I'm currently using a separate html to handle this and modifying each image line in the navigation.html to force it to look correct. I'd love to see this do it during automation. Any help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @kicker22004! I'm Dosu and I’m helping the Trilium team. Trilium's HTML export is intentionally minimal and uses old frameset technology, which isn't responsive and leads to issues like image overflow in browsers such as Chrome. There isn't a built-in way to automate image framing or prevent overflow during export—customization options in the UI or Wiki are limited to themes and don't affect exported HTML structure or image handling [source]. However, if you're comfortable editing server code, you can automate image framing by modifying the export logic. The export process is modular: There is no plugin or post-processing system for export customization, so this approach requires maintaining your changes if you update Trilium. For non-developers, a batch HTML editor or a simple script (e.g., using Python or a tool like Let me know if you want a code snippet or more details on where to make these changes. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Thank you for the response, I'm still learning Trilium as I recently found it and wanted to use it for work because I have mountains of things to keep track of. I was drawn to the fact I could host it local and off the net for security. I wanted to modify the images so that I could send the output to others and allow them to navigate the document tree easier.
I ended up rewriting the navigation.html using a python script. It now looks to a detail.html file for instructions. It's not automated but simple enough for my use. I'll upload the files here for anyone else looking for this.
index.html
Detail Viewer.html
Rewrite-Navigation.py
Thank you for this great tool!