From: Dan White Date: Thu, 19 Jan 2023 21:38:10 +0000 (-0600) Subject: scan2pdf: adjust thresholds X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=2a7402dafd2d0208222c6d97a805d69a143a2547;p=pubbin.git scan2pdf: adjust thresholds --- diff --git a/scan2pdf b/scan2pdf index 68b2321..766dfed 100755 --- a/scan2pdf +++ b/scan2pdf @@ -22,14 +22,24 @@ if [ "$SUFFIX" != "pdf" ]; then OUTFILE="${OUTFILE}.pdf" fi +#convert \ + #-density 300 \ + #"$INFILE" \ + #+dither \ + #-colors 32 \ + #-black-threshold 50% \ + #-fuzz 20% -fill white -opaque white \ + #-extent 2550x3300 \ + #-compress zip \ + #"$OUTFILE" convert \ -density 300 \ "$INFILE" \ +dither \ -colors 32 \ - -black-threshold 50% \ - -fuzz 20% -fill white -opaque white \ + -black-threshold 60% \ + -fuzz 40% -fill white -opaque white \ -extent 2550x3300 \ -compress zip \ "$OUTFILE"