Possible Duplicate:
Free command line image converter
I need a command line tool for windows which can be used to convert an image from any common format to 24 bit bitmap. I'm writing some programs to do image manipulation in C, but I don't really want to write a ton of code to read images in multitudes of formats. I use bitmap format a lot for both reading and writing because it's pretty straight forward. I don't really want to convert all of the images by opening in paint and saving in the desired format.
for f in *.jpg; do convert "$f" -type truecolor "${f%.*}.bmp"; done– UtahJarhead Oct 15 '12 at 19:08Install legacy tools like convert. Also, I had to use the complete path for convert to make it work:"C:\Program Files\ImageMagick-7.0.10-Q16-HDRI\convert.exe"– Megidd Oct 26 '20 at 05:24