Convert Impress ODP Presentations to JPG from command line

I would like to use openoffice or libreoffice to convert a presentation made with Impress ( odp file, but might be powerpoint ppt, too ) to jpg images.

My point is: I have an odp presentation file, composed with 10 slides, then I would receive 10 jpeg images, one for each slide.

I tried with :

soffice --headless --convert-to jpg presentation.odp

This works perfect, but I just receive the very first slide of my presentation, not all. I do need all of them.

I don’t know if there’s an option to tell soffice to convert all the slides instead of the first one.

I know there are other ways like converting to pdf and then use IM, but I want to solve this using soffice. Im doing everything under Ubuntu Linux.

Thanks in advance.

Juan

I know this is an old post, but I was in need of the same thing and found this solution just today. It’s not using a command line as the OP was using, but it works and is an extension for the entire OpenOffice suite (I think). I know it works with Impress though.

https://extensions.openoffice.org/en/project/export-images