From: Daniel Axtens Date: Wed, 17 Aug 2011 04:14:32 +0000 (+0800) Subject: change bebook optimisation to simple trim. still needs work. X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a0aed95fa7d4650c65042f7c8be6a16816c5bb53;p=dja%2Fscandal.git change bebook optimisation to simple trim. still needs work. --- diff --git a/scan2pages.sh b/scan2pages.sh index 3013efe..e878bfe 100755 --- a/scan2pages.sh +++ b/scan2pages.sh @@ -223,8 +223,8 @@ for scanpgnum in `$my_seq 1 $pages`; do convert $convertflags $outdir/logpg-${scanpgnum}-${physpgnum}-?.pnm $outdir/logpg-${scanpgnum}-${physpgnum}-%01d.png || exit 1 #final convert and clean w/ bebook optimisation - if [[ $bebook ]]; then - convert $convertflags $outdir/logpg-${scanpgnum}-${physpgnum}-?.pnm -trim -fuzz 80% -resize 1200x1600 $outdir/final-${scanpgnum}-${physpgnum}-%01d.${extension} || exit 1 + if [[ $bebook ]]; then #1200x1600 + convert $convertflags $outdir/logpg-${scanpgnum}-${physpgnum}-?.pnm -trim $outdir/final-${scanpgnum}-${physpgnum}-%01d.${extension} || exit 1 else convert $convertflags $outdir/logpg-${scanpgnum}-${physpgnum}-?.pnm $outdir/final-${scanpgnum}-${physpgnum}-%01d.${extension} || exit 1 fi