How can i save all pictures from a document into a folder?

I’m having to save photos from some work reports to a seperate folder on my desktop, currently having to right click each photo, save it, name it.
Is there a way to automate the process, preferably automating the sequential naming of the .jpg files
TIA

You’ll still have to rename them, but all images in an ODF document are held inside the Zip format archive in a folder named ‘Pictures’. Simply open the ODF document in a Zip program (e.g. 7-zip) and copy out the Pictures folder.

The existing names are used internally in the XML markup for the document, but will be unique. If you need different names you can each manually rename each, or script it. Point is you do not need to do this one by one with the document open in LibreOffice.

nice one thanks