summaryrefslogtreecommitdiff
path: root/docs/convert_images.sh
blob: 3bd22c01b471896dfb9ea408dc31fb7674a7a6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
TEXDIR=.build/latex

if test ! -z $BOOK; then
  for img in $TEXDIR/*.png;
  do
      cp $img ${img}.BAK
      convert $img -units PixelsPerInch -resample 300 -colorspace Gray ${img}.grey
      #convert -strip -density 300 ${img} -units PixelsPerInch -resample 300 -colorspace Gray ${img}.grey
      mv ${img}.grey $img
  done
fi