|
|
@ -3,8 +3,20 @@
|
|
|
|
## Written August 20, 2010
|
|
|
|
## Written August 20, 2010
|
|
|
|
## Taha Ahmed
|
|
|
|
## Taha Ahmed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Converting *.tif to png"
|
|
|
|
mogrify -format png *.tif
|
|
|
|
mogrify -format png *.tif
|
|
|
|
|
|
|
|
echo "Creating pdf file with all *.tif images"
|
|
|
|
# ${PWD##*/} extracts the name of the parent directory from the current path
|
|
|
|
# ${PWD##*/} extracts the name of the parent directory from the current path
|
|
|
|
convert *.tif ${PWD##*/}.pdf
|
|
|
|
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
|
|
|
|
exit 1
|
|
|
|