Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
scannen_auf_der_konsole [2010/06/09 07:50] 127.0.0.1 Externe Bearbeitung |
scannen_auf_der_konsole [2020/03/31 14:24] (aktuell) admin |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
===== Scannen auf der Konsole ===== | ===== Scannen auf der Konsole ===== | ||
+ | |||
+ | [[http://www.boku.ac.at/7029.html|Scannen und dpi]] | ||
Es muss nicht immer xsane sein zum Scannen:\\ | Es muss nicht immer xsane sein zum Scannen:\\ | ||
Zeile 26: | Zeile 28: | ||
TIFF in PDF umwandeln | TIFF in PDF umwandeln | ||
+ | |||
+ | zypper in tiff => tiff2pdf | ||
tiff2pdf -o output.pdf input.tiff | tiff2pdf -o output.pdf input.tiff | ||
Zeile 34: | Zeile 38: | ||
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=scan.pdf *.pdf | gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=scan.pdf *.pdf | ||
- | Automatisches Scann-Skript: | + | === Scanskript === |
+ | |||
+ | <code bash scan.sh> | ||
+ | #!/bin/bash | ||
+ | scanimage -v -d epson2:libusb:003:002 --mode Color -x 210 -y 297 --resolution 150 --format=tiff > $1.tiff | ||
+ | convert $1.tiff $1.pdf | ||
+ | </code> | ||
+ | |||
+ | === Automatisches Scann-Skript === | ||
<code bash> | <code bash> | ||
Zeile 60: | Zeile 72: | ||
echo "Seite $COUNTER wird gescannt." | echo "Seite $COUNTER wird gescannt." | ||
echo "...scanne..." | echo "...scanne..." | ||
- | scanimage --mode Color -x 210 -y 297 --resolution 100dpi --format=tiff > $COUTER.tiff | + | scanimage --mode Color -x 210 -y 297 --resolution 100dpi --format=tiff > $COUNTER.tiff |
- | convert $COUTER.tiff $COUNTER.pdf | + | convert $COUNTER.tiff $COUNTER.pdf |
sleep 5 | sleep 5 | ||
- | let COUNTER=COUNTER+1 | + | COUNTER=$((COUNTER+1)) |
done | done | ||