javaguy Posted March 12, 2006 Report Share Posted March 12, 2006 Is there an easy way to use Gimp to convert a directory of TGA files into JPGs? Quote Link to comment Share on other sites More sharing options...
tyme Posted March 12, 2006 Report Share Posted March 12, 2006 I don't believe you can do it with gimp, however, a simple google search for "TGA to JPG linux" gave me this page as the first result. Remember, always google ;) Quote Link to comment Share on other sites More sharing options...
paul Posted March 12, 2006 Report Share Posted March 12, 2006 I'd go with convert file.tga file.jpg so for batch processing for i in `ls *.tga`; do convert $i `basename $i .tga`.jpg; done; Quote Link to comment Share on other sites More sharing options...
tyme Posted March 12, 2006 Report Share Posted March 12, 2006 I'd go withconvert file.tga file.jpg so for batch processing for i in `ls *.tga`; do convert $i `basename $i .tga`.jpg; done; which is almost exactly what the page i linked to does: for img in `ls *.tga`;do convert $img `echo $img |sed s/\.tga$/\.jpg/`;done ok, so it's a slight variation ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.