convert large number of graphics

Kevin D. Clark kclark at CetaceanNetworks.com
Wed Dec 4 17:31:24 EST 2002


Charles Farinella <cfarinella at appropriatesolutions.com> writes:

> I have to convert over 200 .bmp files to .jpg.  Is there a tool I can run 
> from a command line to do this?  I looked at the documentation for both xv 
> and display, but found nothing.  Suggestions?

for A in `find /yourdir \( -name \*.bmp -o -name \*.BMP \) -print` ; do
  bmptoppm $A | ppmtojpeg >`echo $A | sed 's/\.bmp/.jpg/i'`
done


Hope this helps,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list