Possibility to export Contained HTML file with image URLs #3830

Closed
opened 2026-02-05 07:36:55 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @ondrej73 on GitHub (May 30, 2023).

Describe the feature you'd like

Is there an option to export book to "not contained HTML file" with original images urls instead of having them encoded to base64? I would like to create online docs (where book exported to html is a perfect solution) with images uploaded on my server where Bookstack runs.
Images encoded to base64 dramatically increase the filesize at the moment.
Possibility to have css file separated is the same feature for clear html output.
Did I miss any settings?

Describe the benefits this would bring to existing BookStack users

Clean html code with minimum size for online docs, with images hosted on server and separated CSS file.

Can the goal of this request already be achieved via other means?

No.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

0 to 6 months

Additional context

No response

Originally created by @ondrej73 on GitHub (May 30, 2023). ### Describe the feature you'd like Is there an option to export book to "not contained HTML file" with original images urls instead of having them encoded to base64? I would like to create online docs (where book exported to html is a perfect solution) with images uploaded on my server where Bookstack runs. Images encoded to base64 dramatically increase the filesize at the moment. Possibility to have css file separated is the same feature for clear html output. Did I miss any settings? ### Describe the benefits this would bring to existing BookStack users Clean html code with minimum size for online docs, with images hosted on server and separated CSS file. ### Can the goal of this request already be achieved via other means? No. ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundemental request ### How long have you been using BookStack? 0 to 6 months ### Additional context _No response_
OVERLORD added the 🔨 Feature Request label 2026-02-05 07:36:55 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 30, 2023):

Hi @ondrej73,

I'd have though the BookStack REST API would be suited to what you desire.
Through that you can access the plain HTML content of the page as required, without added CSS or embedded images.
I have a simple example of doing this within this api example script.

Alternatively if using the default WYSIWYG editor within the BookStack UI, you can click the "Source code" button towards the end of the editor toolbar to access the page's HTML source.

@ssddanbrown commented on GitHub (May 30, 2023): Hi @ondrej73, I'd have though the BookStack REST API would be suited to what you desire. Through that you can access the plain HTML content of the page as required, without added CSS or embedded images. I have a simple example of doing this within [this api example script](https://github.com/BookStackApp/api-scripts/tree/main/php-book-to-static-site). Alternatively if using the default WYSIWYG editor within the BookStack UI, you can click the "Source code" button towards the end of the editor toolbar to access the page's HTML source.
Author
Owner

@ondrej73 commented on GitHub (Jun 6, 2023):

Hi,
and thank you for the response. Allright, we gonna test this REST API solution.
However, I think a checkbox with "don't convert images to base64" option in the settings would be great.

@ondrej73 commented on GitHub (Jun 6, 2023): Hi, and thank you for the response. Allright, we gonna test this REST API solution. However, I think a checkbox with "don't convert images to base64" option in the settings would be great.
Author
Owner

@ssddanbrown commented on GitHub (Jun 7, 2023):

Since the above provided solutions should suit I'll close this off.

However, I think a checkbox with "don't convert images to base64" option in the settings would be great.

To be honest, that's not something I'd really look to add as that opens up a whole new category of options, which I try to avoid where possible.

@ssddanbrown commented on GitHub (Jun 7, 2023): Since the above provided solutions should suit I'll close this off. > However, I think a checkbox with "don't convert images to base64" option in the settings would be great. To be honest, that's not something I'd really look to add as that opens up a whole new category of options, which I try to avoid where possible.
Author
Owner

@ondrej73 commented on GitHub (Jul 18, 2023):

:(

@ondrej73 commented on GitHub (Jul 18, 2023): :(
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3830