Added conversion of png to low-res png (25% of original size).

master
Taha Ahmed 13 years ago
parent f6af643df4
commit f4252bf9c2

@ -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

Loading…
Cancel
Save