Score:0

Libreoffice: extract image from object

in flag

I have been given a docx file from which I am trying to extract images with Libreoffice. With actual "Image" elements in the file it is easy (right-click->Save). But there are also "Object" elements for which a right-click does not offer "Save". I tried the trick described here: https://ask.libreoffice.org/t/how-can-i-extract-photos-from-a-doc-text-document/9095 but the corresponding files in the zip are not images: they are called Obj102 and Obj103 and have no filename extension. The linux "file" command tells

Composite Document File V2 Document, Cannot read section info

Using a hex tool to look at the bytes in the file, I found it embeds a BMP file. Removing all bytes before the "BM" tag in the hex dump, I managed to get the image.

This is a hack, time consuming and clumsy. Ought there not be a way to do it directly from Libreoffice?

vanadium avatar
cn flag
Is there no "Save copy as" right click option like I see for embedded equations and documents?
Arnaud avatar
in flag
@vanadium nope...
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.