Weird formatting with Image draw:frame inside table cell

I’m generating some xml for libreoffice to convert. The current output looks like this:

https://pastebin.com/6C3GMrMa

But the images rendered are way offset and do not fully appear in their correct locations. Any tips as to what I’m doing wrong?

I’d share the document if I could but it contains some senstive information I can’t share publicly.

EDIT:

Thanks for the info. I think it has something to do with the page/document styles. When I remove all styles/reset the image, I was able to get it to work correctly. Here’s the document in question (sensitive info removed). It still exhibits the issue.

wsb-epnr-daily-log-105f46f6-e664-4a74-b592-773df6c4d40f.odt

This is using Windows 10 x64. LibreOffice Version: 6.3.2.2 (x64)

(edit: activated non-broken screenshot)

See my edited answer.

Basically, when working with LibreOffice you should always save in ODF format. In Draw this is ODG. If necessary, you can then create a copy in another file format.
However, it is not certain that the result looks like the ODF format.

Information can be found here in the FAQ.

Unfortunately, you do not describe your preferences in detail, which leads to the result shown. Man (me) can not understand it that way.

Since I have just created a similar example for a video, I attach it here. Maybe it will help you.

Bilder in Tabellen-Rahmen - mit Beschriftung.odt

You can also reduce your file by the confidential information. The problem should be visible.

You can then upload the file here. To do this, edit your initial question. Don’t answer if it is not a solution to your initial question. Edit your question or write a comment. And let me know which operating system you are using. Thank you very much.

EDIT 2091109-19.00 MEZ:
Try the following procedure:
Mark your table via menu Table>Select>Table.
Then select Table>Size>Row height.
Give there e.g. 7 cm and uncheck “Dynamically adjust” and click OK.
Bring it to your desired size-row.
Highlight the respective picture and right-click on it.
Choose for whitlow, parallel whitlow.
For anchorage “At the paragraph”.
Mark the pictures and adjust the size and move to the desired position.

Sorry, i have a german UI, it could differ concepts. I wish you success!

Your file edited by me: Weird formatting with Image draw-frame inside table cell_bearb.odt

Thanks! I updated the original post.

See my edited answer.

Thanks! I guess there’s no great way to just generate the XML needed for libre office. Lots of trial and error using the software then examining the output xml.