Project

General

Profile

Actions

Feature #3228

open

Attatched wiki images are not included in export to HTML

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
2009-04-23
Due date:
% Done:

100%

Estimated time:
Resolution:

Description

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.


Files

inline-html-images.diff (2.48 KB) inline-html-images.diff Patch to inline images as Base64 encoded in exported HTML 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 HTML exportClosedGo MAEDA

Actions
Actions #1

Updated by Andrey Kostrov over 14 years ago

+1

Yes, it could be very useful.

Actions #2

Updated by Frank Isemann over 14 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 ;-)

Actions #3

Updated by Jak Charlton over 13 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

Actions #4

Updated by Azamat Hackimov over 13 years ago

  • Status changed from Resolved to New

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

Actions #5

Updated by Jak Charlton over 13 years ago

Whoops apologies :)

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

Anyway hope it helps

Actions #6

Updated by Toshi MARUYAMA almost 10 years ago

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

Also available in: Atom PDF