How can I change all images' size in one go?

Hi evrerybody!

I’m using LibreOffice 5.2.3.3.

I have a writer document with about 100 images. I want them to have a width of 100%, preserving the ratio. I would rather not go one by one to change it.

I tried changing the “Graphics” style, but it only updates the image when I select it and doulbe click on the style. I’m using F11 to open the style window. I tried resizing the frame style, but it just… reisized the frame.

I tried using the Alternative Find&Replace extension, and I can change the width and height with it, but I can’t preserve the ratio of the images.

I found [Solved+Issue] Default style & settings for inserted picture (View topic) • Apache OpenOffice Community Forum (I supposed OpenOffice is more or less similar), but it didn’t worked. Not even those workarounds.

Does anibody knows to change all the images I have? I’m open to editing styles.xml, or any other file. Maybe opening the file and using the “convert” utility (part of ImageMagick) to reize all the images?

Alternative Edit&Replace changes the properties (like FillBackground = False, or Width = 130000). Is there a property like that that would preserve the aspect ratio?

Thanks in advance,