Libroffice draw batch conversion of jpg to png

I put all jpg-files in C:\001
I placed a file batch3.bat in C:\001 Only one line in that file:
for %%x in (.jpg) do “C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:/000” “%%x”

The execution lines show as follows:
PS C:\001> .\batch3.bat

C:\001>for %x in (.jpg) do “C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:\000” “%x”

C:\001>“C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:\000” “001.jpg”

C:\001>“C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:\000” “002.jpg”

C:\001>“C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:\000” “003.jpg”

C:\001>“C:\Program Files\LibreOffice\program\soffice” --headless --convert-to png --outdir “C:\000” “004.jpg”

In directory C:\000 I found my four png-files

Question What CLI-tools do the same job?

And what is the question?

Personally, I’d convert using dedicated CLI utilities which are specifically designed for this task. They can also more easily be scripted with more conversion options.

What better CLI tools do the same job?

Under Linux, convert, ffmpeg and imagemagick among others. There may be equivalent utilities under Windows.

1 Like

I’m using Imagemagick also under Windows. For interactive jobs I prefer IrfanViews “batch mode”, but you can also access this from batch files

Thanks for the advice. I installed Imagemagick, it will take a while to get the hang of the commands but it seems to have a lot of possibilities.

I just installed Irfanview and after installing the plugins for Win 64 the batch conversion of any set of images from any location to any other format is child’s play.
I don’t mind using CLP-apps but this Irfanview batch conversion is my first choice now!
Thanks again for the advice.