-1

How do I save a directory of .bmp files that are currently 256-BMP into a 24-BMP file?

I'm trying to take a 256-BMP file format and save it to a 24-BMP file format. Both Gimp and Paint do this process. I was attempting to use Paint here.

I have no successful code yet for the file. Below is my latest attempt before coming here.

cd C:\Windows\system32

mspaint.exe FOR /D /r %%G in "C:\Users\user\Desktop\Newfolder\\%%a"

save "C:\Users\user\Desktop\Newfolder\" /D /r "*.bmp" REPLACE
"C:\Users\user\Desktop\Newfolder\Newfolder"

pause close

If anyone knows how to get things running and would like to maybe throw a little guidance on how they did it, I would appreciate it.

Compo
  • 36,585
  • 5
  • 27
  • 39
Lex King
  • 1
  • 2
  • Have a look at imagemagick - https://imagemagick.org - it's got a windows install and a commandline `convert` function. If you can make it do _one_ image, check out the Windows `for` command on SS64: https://ss64.com/nt/for.html – GregHNZ Aug 30 '23 at 03:27
  • I can work with this solution. Thanks for the help mate! – Lex King Aug 30 '23 at 04:08

0 Answers0