Fix BeBook optimisation
authorDaniel Axtens <[email protected]>
Mon, 4 Apr 2011 08:53:51 +0000 (16:53 +0800)
committerDaniel Axtens <[email protected]>
Mon, 4 Apr 2011 08:53:51 +0000 (16:53 +0800)
scan2pages.sh

index 662d877..f27ecf9 100755 (executable)
@@ -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

UCC git Repository :: git.ucc.asn.au