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

Re: Bildgröße reduzieren



Am 2005-02-13 10:14:01, schrieb Roland M. Kruggel:
> Hallo Liste,

> Es gibt doch bestimmt ein Programm mit dem man dieses von der 
> Console aus bewerkstelligen kann. Möglichst noch ganze 
> Verzeichnisse auf einmal. Kann jemand helfen?

apt-get install netpbm

for i in `ls verzeichnis_zu_jpegs/*.jpg` ; do
  jpegtopnm $i | pnmscale -width 640 -height 500 | \
  pnmtojpeg --quality=100 > small_jpegs/`basename $i .jpg`.small.jpg
done

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: