From f4252bf9c22178b11e93a8d45325715f767f926b Mon Sep 17 00:00:00 2001 From: Taha Ahmed Date: Fri, 13 Jul 2012 17:19:02 +0200 Subject: [PATCH] Added conversion of png to low-res png (25% of original size). --- semtiffconv.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/semtiffconv.sh b/semtiffconv.sh index ac1e64f..d82d035 100755 --- a/semtiffconv.sh +++ b/semtiffconv.sh @@ -3,8 +3,20 @@ ## Written August 20, 2010 ## Taha Ahmed + +echo "Converting *.tif to png" mogrify -format png *.tif +echo "Creating pdf file with all *.tif images" # ${PWD##*/} extracts the name of the parent directory from the current path convert *.tif ${PWD##*/}.pdf + +## make low-res png files +for f in *.png +do + echo "Creating low-res version of $f" + convert $f -resize 25% ${f%.*}-low.png +done + + exit 1