Mercurial > code > home > repos > scanner
comparison scan_adf_multipage @ 0:3dc320b8f0c7 default tip
scanimage shell scripts
author | drewp@bigasterisk.com |
---|---|
date | Mon, 30 Sep 2024 16:47:14 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc320b8f0c7 |
---|---|
1 #!/bin/zsh | |
2 | |
3 . ./_init.sh | |
4 | |
5 OUT=scan.%02d.png START_PAGE=1 INCR_PAGE=1 SOURCE=ADF ${SCAN} | |
6 | |
7 gm convert -units PixelsPerInch -resample 150x150 scan.*.png scan.pdf | |
8 | |
9 for x (scan.*.png) { | |
10 gm convert -units PixelsPerInch -resample 150x150 -quality 90 $x $x:r.jpg | |
11 } | |
12 gm convert scan.*.jpg scan.pdf | |
13 | |
14 scp scan.pdf ditto:/opt/paperless/consume/scan-`date +%s`.pdf |