[lug] Image conversion.

Scott A. Herod herod at interact-tv.com
Fri Dec 22 18:04:47 MST 2000


Looks like ppmtogif wants a file name so try 

foreach file ( *.bmp )
set outfile=`echo $file | sed 's/bmp/ppm/'`
bmptoppm $file | ppmtogif > $outfile
end


"Scott A. Herod" wrote:
> 
> How about
> 
> bmptoppm *.bmp | ppmtogif
> 
> I can't remember if that will try to do all of them into one gif thought
> so if it really gets ill, try switching to tcsh ( because I can script
> it without looking at the man page ) and running ( foreach will prompt
> the second two lines )
> 
> foreach file ( *.bmp )
> bmptoppm $file | ppmtogif
> end
> 
> Scott
> 
> John Starkey wrote:
> >
> > I've got 500 images to convert from .bmp to .gif (they're B&W). Obviously
> > being that many I won't be able to go thru them one by one until they're
> > posted so I need something that will do it right.
> >
> > Anyone have any suggestions on apps that will do this? I think I remember
> > ImageMagick or something similar doing this?
> >
> > TIA,
> >
> > John
g




More information about the LUG mailing list