How to view or export the paths of the photos in a presentation?

I created a slideshow and drag-and-dropped photos into it. In doing so, I also selected the best images. I would like to view the names of those images in the slideshow or export them into a text file.

For example, this would help if I want to make a version similar to the slideshow in HTML. I would like to get:

slide 1: image1.jpeg
slide 2: image2.jpeg, image3.jpeg, image4.png
...
slide 10: picture.jpg

And I can then use the text file to produce an HTML file with similar content, or check for large differences in presentation versions with a tool like git.

Is that possible?

(Migrated from How to view or export the paths of the photos in a LibreOffice presentation? - Unix & Linux Stack Exchange )

As soon as you inserted your images into the slideshow, you had lost the original filenames (unless you had linked the images, which is not happening when you use default drag-and-drop).

Hello,

as far as I understand XML file document.xml (which is part of the .odp ZIP container) it doesn’t contain any information of the original file name and its location, if you drag-and-dropped it into the presentation (i.e. you embedded the image into the presentation). Embedded images get referenced by XML elements similar to

<draw:image xlink:href="Pictures/10000201000002A4000001D85A475B71F81A2EF0.png,

which don’t contain any name information of the original name any longer.

Thus from my point of view the answer is: No, this is not possible

So if I had included them as a link instead of embedding, with Insert > Image > Options: [x] Link, I could find the list from the XML file?

Yes … but probably there are also methods using macros, since the information is no longer lost, but is part of the document.