From: Daniel Axtens Date: Mon, 4 Apr 2011 08:53:51 +0000 (+0800) Subject: Fix BeBook optimisation X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3a3956db5cd08a5475017090b9fd9a1ebc12b86c;p=dja%2Fscandal.git Fix BeBook optimisation --- diff --git a/scan2pages.sh b/scan2pages.sh index 662d877..f27ecf9 100755 --- a/scan2pages.sh +++ b/scan2pages.sh @@ -168,7 +168,7 @@ for pg in `$my_seq 1 $pages`; do #final convert and clean w/ bebook optimisation if [[ $bebook ]]; then - convert $convertflags $dir/upg-${pgn}-?.pnm -depth 4 -resize 600x800 $dir/final-${pgn}-%01d.${extension} || exit 1 + convert $convertflags -colorspace Gray -median 1 $dir/upg-${pgn}-?.pnm -resize 1200x1600 $dir/final-${pgn}-%01d.${extension} || exit 1 else convert $convertflags $dir/upg-${pgn}-?.pnm $dir/final-${pgn}-%01d.${extension} || exit 1 fi