poml icon indicating copy to clipboard operation
poml copied to clipboard

Using multimedia="false" in <document> still includes images in docx documents

Open Fuzzillogic opened this issue 4 months ago • 2 comments

The multimedia parameter of document is documented as "If true, the multimedias will be displayed. If false, the alt strings will be displayed at best effort." But what exactly is this intended to do?

If I include a docx document like <document src="MyDoc.docx" parser="docx" multimedia="false" />, I still get the images included in the document inlined as base64-encoded string, eating away tokens. Is this intended? And if yes, how do I prevent the inclusion of images? I'm only interested in the text in this case.

Fuzzillogic avatar Aug 25 '25 15:08 Fuzzillogic

I think that's a long forgotten bug left over from probably 0.0.4. Will fix it ASAP.

As a workaround, would you try the following in your POML:

<stylesheet>{"img": {"syntax": "markdown", "alt": "[image not visible]"}}</stylesheet>

Tell me if it works or crashes.

ultmaster avatar Aug 25 '25 16:08 ultmaster

Yes, with the stylesheet in place I no longer get the images in the output. Thanks for the work-around!

Fuzzillogic avatar Aug 25 '25 17:08 Fuzzillogic