[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to convert 100 bmp files to jpeg?



Michelle Konzack napsal(a):
Am 2006-01-14 20:55:34, schrieb Serena Cantor:
I 100 bmp files. I installed gimp and imagemagik, but
can't find the way to convert 100 bmp files to jpeg in
batch fashion. Do you know the command? Thanks!
> apt-get install netpbm
>
> for X in *.bmp ; do
>    bmptopnm $X |pnmtojpeg -quality 100 >`basename .bmp`.jpg
> done
probably no need to install netpbm

for X in *.bmp ; do
  convert -quality 100 $X ${X%%.bmp}.jpg
done

regards,

--
Lubos
_@_"



Reply to: