Creating a lot of thumbnails with Shell script

This script create a thumbnail with width 100 of each png file in the actual directory.

#!/bin/sh
for i in *.png
do
	echo "convert -thumbnail 100 $i $i"
	convert -thumbnail 100 $i $i
done
  1. Para fazer isto em uma única linha:

    convert -quality 70 -resize 10% *.jpg images.jpg

    Para fazer uma montagem

    montage *.jpg -shadow -geometry +10+10 montagem.jpg

    Para mais detalhes:
    * http://linuxdicas.wikispaces.com/imagemagick

  2. Sérgio, valeu, era isso mesmo que eu estava procurando quando fiz esse script.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">