From a0aed95fa7d4650c65042f7c8be6a16816c5bb53 Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Wed, 17 Aug 2011 12:14:32 +0800 Subject: [PATCH] change bebook optimisation to simple trim. still needs work. --- scan2pages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1