scan2pdf: adjust thresholds
authorDan White <dan@whiteaudio.com>
Thu, 19 Jan 2023 21:38:10 +0000 (15:38 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 19 Jan 2023 21:38:10 +0000 (15:38 -0600)
scan2pdf

index 68b23214099ae4319005723ea3fdb755229a3129..766dfed1d6a7fa0fe7f659b447969a33b1e3b61a 100755 (executable)
--- 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"