Page 1 of 1

How to do the same convert on a lot of images at once

Posted: 2007-12-11T08:30:12-07:00
by mgilsbach
Hello,

I am new to this app, but have a problem I need to resolve. I used ImageMagick to convert a BG color to transparent like this:

Code: Select all

convert c:\ADR_141.gif -transparent "#FFFFEF" c:\ADR_141.gif
Worked great. Trouble is that I have 100s of images that I need to do the same thing to, some GIF and some JPG. Is there a way to do the above to a whole directory full of images so that it will convert each image and save it as the original name? Something like:

Code: Select all

convert c:\*.* -transparent "#FFFFEF" c:\*.*
Thanks for your help,
Mike

Re: How to do the same convert on a lot of images at once

Posted: 2007-12-11T08:37:17-07:00
by Bonzo

Re: How to do the same convert on a lot of images at once

Posted: 2007-12-11T08:45:27-07:00
by mgilsbach
Awesome! So, I just used this and it worked great:

Code: Select all

mogrify -transparent "#FFFFEF" c:\imagetest\*.*
Thanks for your help!

-Mike