summaryrefslogtreecommitdiff
path: root/docs/convert_images.sh
blob: 29539c6b5bc3f506085949e84aa595b580146d66 (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