Bug 115343 - No way to toggle mbEmbedImages true to write HTML with embedded images
Summary: No way to toggle mbEmbedImages true to write HTML with embedded images
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images (X)HTML-Export
  Show dependency treegraph
 
Reported: 2018-01-31 18:37 UTC by V Stuart Foote
Modified: 2024-09-01 20:00 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description V Stuart Foote 2018-01-31 18:37:06 UTC
Regards the SwHTMLWriter mbEmbedImages value [1]. I can't figure out a way to toggle it--no GUI, no Expert Configuration and no command line switch. Am I missing something?

Oliver adjusted the write HTML filter to make saving embedded images optional [1] reverting the always embed images done for bug 63211, to just embed when called for a mail merge.

Was something more needed at that point?

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/sw/source/filter/html/wrthtml.cxx?a=true#151

[2] https://gerrit.libreoffice.org/#/c/23359
Comment 1 Vladimir 2018-02-01 04:05:32 UTC
I agree, there seems to be no [obvious] way to toggle image embedding when saving document as HTML.
Comment 2 QA Administrators 2019-02-18 03:44:36 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2021-02-18 04:35:02 UTC Comment hidden (obsolete)
Comment 4 V Stuart Foote 2021-02-20 16:09:55 UTC
issue remains with 7.1.1 and master/7.2

Save-as export to .HTML provides the images in the same folder as the document, and a relative link to them.

No means to toggle on base64 embedding of the images in the document.
Comment 5 Stéphane Guillou (stragu) 2022-08-31 16:25:40 UTC
Still no such option in:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 24087697d5cf78aac346d4dcea0596373e15a95c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Export as XHTML uses base64 automatically. Save as HTML has pictures saved separately.
Comment 6 Miklos Vajna 2022-09-01 06:49:22 UTC
Where do you want to set this option for the HTML export? GUI, command-line, something else?
Comment 7 Stéphane Guillou (stragu) 2022-09-01 08:53:13 UTC
In my opinion, it would be good to expose this setting for both save as HTML and export as (X)HTML, for both the GUI and the command line.

Should this be re-categorised as an Enhancement?
Comment 8 Miklos Vajna 2022-09-01 11:18:41 UTC
THe HTML export already has this for the cmdline. One way to do this is something like:

soffice --convert-to 'html:HTML (StarWriter):{"EmbedImages":{"type":"boolean","value":"true"}}' test.odt

The GUI is probably indeed missing and I haven't checked the xslt-based XHTML export.
Comment 9 QA Administrators 2024-09-01 03:15:53 UTC Comment hidden (obsolete)
Comment 10 V Stuart Foote 2024-09-01 20:00:28 UTC
remains an issue, no means to toggle and embed image as base64 stream in Save-as to HTML. Setting as enhancement to silence QA check.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c52f139b4f7140033144dde29f70a39ebedb6aa0
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded