File: convert_images.sh

package info (click to toggle)
python-pyramid 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,112 kB
  • ctags: 8,169
  • sloc: python: 41,764; makefile: 111; sh: 17
file content (12 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download
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