convert large number of graphics

Jeff Macdonald jeff.macdonald at virtualbuilder.com
Wed Dec 4 17:14:50 EST 2002


On Wed, 2002-12-04 at 16:22, Charles Farinella wrote:
> 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?
> 

The netpbm utilities would be a good place to start.

bmptoppm <file> | ppmtojpeg > <file.jpg>

So if they are all in one directory you could do this:

find /path/to/bmps \
-printf "bmptoppm %p | ppmtojpeg > %p.jpg" > convert.sh

check out convert.sh to see if it looks good then run it!
WARNING: I didn't test the command.



> thanks,

Your welcome.

-- 
Jeff Macdonald <jeff.macdonald at virtualbuilder.com>




More information about the gnhlug-discuss mailing list