Convert images in subdirectories

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
friandises33
Posts: 1
Joined: 2012-08-20T02:14:45-07:00
Authentication code: 67789

Convert images in subdirectories

Post by friandises33 »

Hello
I have 500 folders with 30 images on it.
This is a would like to do for all images in JPG :

Mode > Grayscale
Mode > Indexed (Use black and white (1-bit) palette).
Save the file in GIF format.

How can i do this with Imagemagick for all my images ?
I am looking for a solution this since one week, thanks for help !
I am on Windows
Isabelle
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Re: Convert images in subdirectories

Post by whugemann »

It is quite simple to crawl through an entire directory tree by just one batch file command, see http://www.imagemagick.org/Usage/windows/#for_recursive.
As for the colors, inserting -colors 2 in the command line should do.
Wolfgang Hugemann
dzieglerok
Posts: 4
Joined: 2012-09-05T10:57:56-07:00
Authentication code: 67789

Re: Convert images in subdirectories

Post by dzieglerok »

Wolfgang,

I had already looked at the batch procedures in your link and will make an attempt to make it work. If I have trouble, I will throw you a lifeline. Thanks for your help.

Dan
Post Reply