change bebook optimisation to simple trim. still needs work.
authorDaniel Axtens <[email protected]>
Wed, 17 Aug 2011 04:14:32 +0000 (12:14 +0800)
committerDaniel Axtens <[email protected]>
Wed, 17 Aug 2011 04:14:32 +0000 (12:14 +0800)
scan2pages.sh

index 3013efe..e878bfe 100755 (executable)
@@ -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

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