Game Development Community

Gimp batch process for converting .bmp to png format?

by Keith Mc Dowell JR · in Torque Game Builder · 12/31/2007 (12:45 pm) · 3 replies

Anyone, know how or found any documents to convert a batch of .bmp to png format? I've attempted to manually do this, but it's taking some time..

Thanks,

Thread is locked
#1
12/31/2007 (1:01 pm)
Use Irfanview:

www.irfanview.com/

It's free also, and it has a bunch of options in it's batch conversion.
#2
12/31/2007 (2:51 pm)
for f in *.bmp; do convert $f 'echo $f | sed 's/bmp/png/''; done

Jus' throwing it out there. Uses imagemagick and a [in this case] bourne-compatible oneliner.

Gary (-;
#3
12/31/2007 (2:55 pm)
It's totally possible within the gimp (along with a whole other slew of other cool scriptable things)
You can write perl scripts that interact with the gimp and make it do various commands.
A basic tutorial can be found here :: http://www.gimp.org/tutorials/Basic_Perl/

Its a VERY powerful (albeit pretty complicated) tool and you can use it to do some nifty things like automating database driven re-coloring of individual layers inside images created from script-fu and then saving them directly onto a webserver..