Fix button push delay

This commit is contained in:
Timo Tomasini 2023-07-24 15:58:04 +02:00
parent d6355bfaf8
commit 5031b15fdf

View file

@ -11,12 +11,18 @@ cloudsendpass=""
cloudsendurl="" cloudsendurl=""
source $SCRIPTPATH/scan.script.env source $SCRIPTPATH/scan.script.env
echo "###### Begin of $SCANBD_ACTION for device $SCANBD_DEVICE ######"
echo "###### TMPDIR $tmpdir ######" echo "###### TMPDIR $tmpdir ######"
mkdir $tmpdir mkdir $tmpdir
echo "################## Scanning ###################" echo "################## Scanning ###################"
#scanimage --format tiff --mode Color --source "ADF Duplex" --resolution 300 --buffermode On --page-height 1000mm --ald=yes --swcrop=yes --swdeskew=yes --swdespeck 2 --swskip 8% --batch=p%03d.tiff #scanimage --format tiff --mode Color --source "ADF Duplex" --resolution 300 --buffermode On --page-height 1000mm --ald=yes --swcrop=yes --swdeskew=yes --swdespeck 2 --swskip 8% --batch=p%03d.tiff
scanimage --format tiff --mode Color --source "ADF Duplex" --resolution 300 --buffermode On --page-width 210mm --page-height 297mm --ald=no --swcrop=no --swdespeck 1 --swskip 8% --batch=$tmpdir/p%03d.tiff scanimage --device-name $SCANBD_DEVICE --format tiff --mode Color --source "ADF Duplex" --resolution 300 --buffermode On --page-width 210mm --page-height 297mm --ald=no --swcrop=no --swdespeck 1 --swskip 8% --batch=$tmpdir/p%03d.tiff
if [ ! -f "$tmpdir/p001.pdf" ]; then
echo "#### Scan was not successful, aborting ... ####"
exit 1
fi
echo "############# Converting to PDF ###############" echo "############# Converting to PDF ###############"
tiffcp -c lzw $tmpdir/*.tiff $tmpdir/combined.tiff tiffcp -c lzw $tmpdir/*.tiff $tmpdir/combined.tiff