Skip to content

Commit

Permalink
Merge pull request #32 from stevepiercy/master
Browse files Browse the repository at this point in the history
add missing convert_images.sh shell script
  • Loading branch information
stevepiercy committed Apr 29, 2017
2 parents 9be9f02 + 51f28ac commit 72fb226
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/convert_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 72fb226

Please sign in to comment.