Is it possible to convert, through the command line, an image file to BMP format using native Windows tools?
I'm thinking of tools like MS Paint or WinXP's Image viewer or some call to a DLL or whatever.

I just need a command line like this:
some_command "inputFile.xxx" "outputFile.bmp"
which works on any default installation of Windows XP.
Wherexxx is any of the most popular and widely supported image formats (jpg, png, gif, etc...)

link|improve this question

71% accept rate
1  
Uh oh, someone's put "Windows" and "native tools" in the same sentence again... – Ignacio Vazquez-Abrams Sep 1 '10 at 8:36
2  
In other words, it's not possible. Get ImageMagick. – Dennis Williamson Sep 1 '10 at 9:04
3  
Hrm... perhaps you could create a VBScript which launches mspaint with the original file name as a parameter, then sends keypresses to save as BMP. See: WScript.Shell... NB: I do not recommend this - I'd be with Dennis except rather than saying "not possible" I'd say "not practical". – John Barrett Sep 1 '10 at 9:34
@John: You're right. "Not practical" is much better. – Dennis Williamson Sep 1 '10 at 15:28
What about C++ then? Can you do it with 2 or 3 function calls? – GetFree Sep 1 '10 at 20:05
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.