Geek Pop Quiz!
Oct. 8th, 2008 09:43 pmYes, yes, I know, two GPQs in a night. It's a bad, bad habit.
Due to what can only be described as a near-infinite supply of stupid, a co-worker has a large pile of 256-color bitmap files that all need to be converted to 24-bit bitmaps. Opening each one in MSPaint, selecting Save As, and changing the format is too slow.
How do I do this, all at once? OS of your choice (I have access to all of the sane ones, and also MacOS), software packages of your choice.
Bash and foreach or "find location -name .bmp" mean I can apply a command line to a large number of files at once - but what command line should it be?
EDIT:
miz_geek points out the Irfanview can do this for the co-worker, inside windows. Yay!
jwz offers several linux solutions. Which work if I do it for the user, and so they DO meet the requirements, but irfan is faster and simpler for the end user.
Due to what can only be described as a near-infinite supply of stupid, a co-worker has a large pile of 256-color bitmap files that all need to be converted to 24-bit bitmaps. Opening each one in MSPaint, selecting Save As, and changing the format is too slow.
How do I do this, all at once? OS of your choice (I have access to all of the sane ones, and also MacOS), software packages of your choice.
Bash and foreach or "find location -name .bmp" mean I can apply a command line to a large number of files at once - but what command line should it be?
EDIT:
(no subject)
Date: 2008-10-09 01:53 am (UTC)(no subject)
Date: 2008-10-09 01:54 am (UTC)They can be. They can be anywhere I want them to be.
(no subject)
Date: 2008-10-09 01:56 am (UTC)(no subject)
Date: 2008-10-09 02:10 am (UTC)(no subject)
Date: 2008-10-09 02:19 am (UTC)But I see you found a solution already. :)
(no subject)
Date: 2008-10-09 02:24 am (UTC)(Hooking up photoshop would have been inconvenient. Doable, but inconvenient.
Thanks for your help!)
(no subject)
Date: 2008-10-09 02:28 am (UTC)Glad you found something free & easy!
(no subject)
Date: 2008-10-09 01:55 am (UTC)http://www.google.com/search?hl=en&q=batch+convert+images&btnG=Google+Search&aq=f&oq=
Batch convert thru Photoshop: http://www.google.com/search?hl=en&q=batch+convert+images+photoshop&btnG=Search
(no subject)
Date: 2008-10-09 02:03 am (UTC)(no subject)
Date: 2008-10-09 02:16 am (UTC)Thank you.
ImageMagick
Date: 2008-10-09 02:13 am (UTC)convert $file -depth 24 tmp.bmp && mv tmp.bmp $file
or
convert $file -colors 16777215 tmp.bmp && mv tmp.bmp $file
then this should work:
convert $file -depth 24 tmp.png && convert tmp.png tmp.bmp && mv tmp.bmp $file
Re: ImageMagick
Date: 2008-10-09 02:22 am (UTC)(no subject)
Date: 2008-10-09 04:26 am (UTC)(no subject)
Date: 2008-10-09 12:13 pm (UTC)(no subject)
Date: 2008-10-09 02:22 am (UTC)I assure you, you have no idea. Every single time I think I've found all of the possible things that could have been done wrong, I FIND ANOTHER.
Many thanks to everyone posting suggestions, we did get it to work, and have saved me a significant amount of time and headache.
(no subject)
Date: 2008-10-09 09:35 am (UTC)