Sign in to follow this  
Sir Sapo

Mass File Conversion

Recommended Posts

Does anyone know of any program that can convert many BMP images to PNG or TGAs at once. I have about 50 BMP textures , and I just converted my game to load TGAs and PNG. Do I have to manually open all these files up in paint and resave them or is there a faster way?

Share this post


Link to post
Share on other sites
If you have access to photoshop (I think 4 or 5.0 and above) you can batch process some file operations. Also, you may want to write a small utility that will do this for you in case you do not have access to photoshop.

Some sudo-code


Get dir list
Loop through files in dir
Open file as bmp
Convert data to TGA
Save as tga
Next


gl

Share this post


Link to post
Share on other sites
Imagemagick's "convert" tool, and a shell script, should do it.

Even on win32, you might be able to do this with a batch file (On NT, you do have foreach, right?)

Mark

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this