comparison scan_adf_singles @ 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 for x (scan.*.png) {
8 JPG=${x:r}.jpg
9 PDF=`date +%s`-${x:r}.pdf
10 gm convert -units PixelsPerInch -resample 150x150 -quality 90 $x $JPG
11 gm convert $JPG $PDF
12 scp $PDF ditto:/opt/paperless/consume/
13 }