Command line tool for image conversion
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping
--
Chapters
00:00 Command Line Tool For Image Conversion
00:33 Answer 1 Score 5
00:41 Accepted Answer Score 21
01:07 Thank you
--
Full question
https://superuser.com/questions/488087/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #commandline #commandlinetool
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping
--
Chapters
00:00 Command Line Tool For Image Conversion
00:33 Answer 1 Score 5
00:41 Accepted Answer Score 21
01:07 Thank you
--
Full question
https://superuser.com/questions/488087/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #commandline #commandlinetool
#avk47
ACCEPTED ANSWER
Score 21
ImageMagick can do format conversions with a tool that comes with it called convert
. You can find binaries for it here.
You'll want to run something like this on Windows:
for %%f in (*.jpg) do (
convert "%%~nf.jpg" -type truecolor "%%~nf.bmp"
)
Or in Bash:
for f in *.jpg; do convert "$f" -type truecolor "${f%.*}.bmp"; done
Convert picks the format automatically from the extension and -type truecolor
makes sure you are converting to 24-bit.
ANSWER 2
Score 5
Try Convert. It can do a lot.