From: Dan White Date: Wed, 6 Sep 2023 23:59:45 +0000 (-0500) Subject: scan2pdf: be explicit about output size and units X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=cd1e484fee166d1131d54920b6ed5f9b6f0f2b87;p=pubbin.git scan2pdf: be explicit about output size and units --- diff --git a/scan2pdf b/scan2pdf index 908a722..0dc7dc5 100755 --- a/scan2pdf +++ b/scan2pdf @@ -61,6 +61,8 @@ convert \ -colors 32 \ -black-threshold 60% \ -fuzz 20% -fill white -opaque white \ + -units PixelsPerInch \ + -density "$RESOLUTION" \ -extent "$((RESOLUTION * 17/2))x$((RESOLUTION * 11))" \ -compress zip \ "$OUTFILE"