Feature #3228

Attatched wiki images are not included in export to HTML

Added by Tim Sjöstrand over 13 years ago. Updated over 12 years ago.

Status:NewStart date:2009-04-23
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


When using the HTML export feature on wiki pages, images that have been attached to that specific page are not included (rather, they are referenced in the src attribute as if they are locally present).

I understand the technical limitation behind this, due to that the export feature generates a single static HTML page (only).

Generating an archive (tar-gz/zip etc.) bundled with attached images + the HTML file would perhaps be a more robust solution. When exporting wiki pages as part of documentation, it is often desirable to include images to further clarify instructions. Or at least reference images by their external Internet address so that an external script could fetch the images directly.

Further, scripting to other formats (using the HTML content) like PDF, Latex, etc. is made considerately more difficult when the exact filename is not known.

inline-html-images.diff Magnifier - Patch to inline images as Base64 encoded in exported HTML (2.48 KB) Jak Charlton, 2010-08-22 01:21

Related issues

Related to Redmine - Patch #16446: Generate full URLs to images and linked pages in the Wiki... Closed


#1 Updated by Andrey Kostrov over 13 years ago


Yes, it could be very useful.

#2 Updated by Frank Isemann over 13 years ago

Why not embedded, Base64 Encoded Images?

Nice solution for someone who just want to have a single file for documentation purposes.

Okay, its not the "cleanest" method ;-)

#3 Updated by Jak Charlton over 12 years ago

This patch embeds all images as Base64 encoded images inline with exported HTML

This is based off another patch I found on here (but now cannot locate), which did not work on the 1.0 stable as it was written, a small amount of rework was needed to get it working OK

#4 Updated by Azamat Hackimov over 12 years ago

  • Status changed from Resolved to New

Jak, don't close bug until patch commited to rep :)

#5 Updated by Jak Charlton over 12 years ago

Whoops apologies :)

Didn't actually know if you would want to put to main repository ...

Anyway hope it helps

#6 Updated by Toshi MARUYAMA over 8 years ago

  • Related to Patch #16446: Generate full URLs to images and linked pages in the Wiki HTML export added

Also available in: Atom PDF