====== Plustek OpticSlim M12 Plus =======
I didn't fucking find any fucking firmware at the whole fucking CD in-fucking-cluded with the fucking scanner.
Here is some stuff:
$ scanimage --version
scanimage (sane-backends) 1.0.19; backend version 1.0.19
$ scanimage -L
device `gt68xx:libusb:003:011' is a Plustek OpticSlim M12 flatbed scanner
$ lsusb
Bus 003 Device 011: ID 07b3:0412 Plustek, Inc. Scanner
$ scanimage --help --device-name gt68xx:libusb:003:011
...long...help...
Put the file in ''/usr/share/sane/gt68xx''
{{:hardware:cism216.fw.gz|}}
I've solved //too shiny// document problem using **--gamma-value**
scanimage --gamma-value 0.9 --resolution 100 >/tmp/a.pnm
For color document it is better to rise gamma or use default 2. Otherwise I'm getting blue pages.
scanimage --gamma-value 1.5 --resolution 200 --mode Color
===== GUI =====
**Prerequisities:** Xdialog, imagemagick, gqview
apt-get install xdialog imagemagick gqview
**The script:** I use it in my gnome panel. You can easily add it by //right mouse click -> add to panel//
#!/bin/sh
CONFIG="/etc/scanner/scantofile.cfg"
DIR="$HOME/images/scanner"
umask 0000
RESOLUTION=`Xdialog 2>&1 --title "Resolution BOX" --combobox \
"This is easy scanner setup.\n First select the Scanner resolution..." 8 34 100 150 200 300 600`
case $? in
1)
echo "Cancel pressed.";
exit 1;;
255)
echo "Box closed.";
exit 2;;
esac
MODE=`Xdialog 2>&1 --title "Color BOX" --combobox "Colors..." 8 34 Lineart Gray Color`
case $? in
0)
echo "Resolution set to $RESOLUTION."
echo "Colorness set to $MODE."
case "$MODE" in
Lineart)
GAMMA=0.5
;;
Gray)
GAMMA=1
;;
Color)
GAMMA=2
;;
*)
GAMMA=1
;;
esac
cd $DIR || cd /tmp
output_file=`mktemp SCAN.XXX`
echo scanimage --gamma-value $GAMMA --resolution $RESOLUTION --mode $MODE
scanimage --gamma-value $GAMMA --resolution $RESOLUTION --mode $MODE > $output_file
convert $output_file $output_file.png
gqview $output_file.png
;;
1)
echo "Cancel pressed.";;
255)
echo "Box closed.";;
esac