From 2a7402dafd2d0208222c6d97a805d69a143a2547 Mon Sep 17 00:00:00 2001 From: Dan White <dan@whiteaudio.com> Date: Thu, 19 Jan 2023 15:38:10 -0600 Subject: [PATCH] scan2pdf: adjust thresholds --- scan2pdf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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" -- 2.25.1