On March 23, 2003 07:51 am, Adam Mercer wrote: > Hi > > I've got a huge batch of targa images that I need to convert to png, as > I don't want to convert each image individually I thought about writing > a small script to do this for me. I thought about something along the > lines of > > for file in $( find . -name '*.tga' | sort ) > do > convert $file $file.png > done > > but as expected this leaves the .tga extension on the file name, before > the png extension. How can I remove the .tga extension on the file? > > Cheers > > Adam > > -- > [EMAIL PROTECTED] mailing list
mogrify -format tga *.png Works great for that. Also what I do is set up imagemagik commands as external commands in the gentoo file manager and assign them to buttons then it is just select and convert, works great for multiple selection with out scriptings. Martin -- [EMAIL PROTECTED] mailing list
