bundlewrap/bundles/scansnap/files/scan.sh
Sophie Schiller 9a60d36a03
All checks were successful
bundlewrap/pipeline/head This commit looks good
scan bright colors
2021-05-24 11:01:13 +02:00

9 lines
270 B
Bash

#!/bin/bash
set -euo pipefail
OUTFILE=$(mktemp -d)
scanimage --source 'ADF Duplex' --format tiff --mode Color --brightness 23 --resolution 300 --page-width 210 --page-height 297.3 -x 210 -y 297.3 --batch=${OUTFILE}/p%04d.tiff
/etc/scanbd/scripts/ocr.sh "$OUTFILE" &