CoCalc Public Fileswww / sga / sga / scripts / processOpen in with one click!
Author: William A. Stein
1
#! /bin/bash
2
3
for file in $*
4
do
5
echo "Processing $file..."
6
time mogrify -quality 50 -format jpeg -geometry 1000x1375 $file
7
base=`basename $file tif`
8
echo "$base"jpeg " and " thumb_"$base"jpeg
9
cp "$base"jpeg thumb_"$base"jpeg
10
time mogrify -quality 50 -format jpeg -geometry 150x250 thumb_"$base"jpeg
11
done
12