You are not logged in.
I want to take approximately 600 targa images, and convert them to jpegs. Does anyone know a command line utility to do this with?
Offline
imagemagick -- i believe you can do a wildcard I am not sure.
convert *.tga *.jpg
Walt
P4 2.8Ghz @ 2.8Ghz SL6WT
Zalman CNPS7000-Cu
865PE Neo-2 LS BIOs 2.4
512mb Mushkin Level II
160GB Maxtor HD
Geforce 4 440MX
Antec 3700 1 exhaust and 1 intake fans
Linux 2.6.x
Linux user 314187
ArchLinux
Offline
no, that will not work. it will create one file called *.jpg. this requires some (very simple) bash scripting.
for tgafile in *.tga ; do
jpgfile=`echo $tgafile | sed 's,tga$,jpg,'`
convert -quality 100 "$tgafile" "$jpgfile"
done
Here, I provided the highest quality jpg compression possible. Values range from 1-100. You can try 'convert -quality 80 myfile.tga myfile.jpg' and fiddle with different quality values to pick a setting that satisfies your eyes and your hard drive. Read the man page for convert, you can do a LOT of really neat stuff, such as resizing images, or making animated mng files.
Offline
I want to take approximately 600 targa images, and convert them to jpegs. Does anyone know a command line utility to do this with?
Just in case the command line is not mandatory for you, you could have a look to gimp-dbp .
Quoting gimp-dbp's home page:
I got tired of people asking on Gimp newsgroups and mailing lists, "How can I resize a directory full of images", and even more tired of the standard reply, "Use ImageMagick". DBP allows users to do common processing tasks on multiple images, without leaving Gimp or having to learn a scripting language.
To be honest, i already never used this package myself . But i thought you could be interested.
Offline
gimp-dbp is really great in primitive batch processing, but i'm not sure about targa support (dont knwo this format)
The impossible missions are the only ones which succeed.
Offline