I use headless libreoffice to convert HTML to various formats. For this question, we will use docx for simplicity.
I use a command like this:
libreoffice --headless --convert-to docx:"MS Word 2007 XML" --writer document.html
This works fine for the most part.
HTML contains a couple of absolute image links.
<img src="http://myserver.com/image1.jpg" />
When the document is converted to document.docx, the images are still linked, not embedded in the document. This causes problems when you are offline and in preview, etc.
Is there a way I can tell libreoffice to load and embed images directly into a document instead of just storing them as related images?
source share