When exporting a document to HTML, images are emitted as Base64 data: URIs inline in the output instead of keeping a reference to the original image file/link.
I understand this makes the exported HTML self-contained and portable, but it also has some notable downsides: the output grows a lot for documents with many or large images, the browser can no longer cache images separately (nor can they be served from a CDN), and any tooling that would like to post-process the assets has to parse the HTML.
So my questions are:
- What motivated this design choice? Is the main reason self-containment/portability of a single HTML file?
- Is there any (current or planned) way to keep images as external references, e.g. writing the image files next to the HTML file and linking them with relative paths, or preserving the original URL for images that came from the web?
- Are there recommended workarounds today (post-processing the HTML, CSS overrides, etc.)?
Thanks!