Welcome to the most active Linux Forum on the web.
Go Back > Blogs > jere21
User Name


Rate this Entry

Scanner (here: Mustek Bearpaw 1200 CS), Scanning and file size reduction under Debian Jessie

Posted 06-05-2015 at 07:44 AM by jere21

Save A1fw.usb to /usr/share/sane/gt68xx/ and start scanning with sane.

More general instructions for installing a scanner:
  1. Your user should be in group "scanner" and sane must be installed. In my case I have:
    ii  libsane:amd64         1.0.24-13    amd64  API library for scanners
    ii  libsane-common        1.0.24-13    all    API library for scanners -- documentation and support files
    ii  libsane-extras:amd64     amd64  API library for scanners -- extra backends
    ii  libsane-extras-common     amd64  API library for scanners -- documentation and support files
    ii  libsane-hpaio         3.14.6-1+b2  amd64  HP SANE backend for multi-function peripherals
    ii  sane-utils            1.0.24-13    amd64  API library for scanners -- utilities
    ii  xsane                 0.999-2      amd64  featureful graphical frontend for SANE (Scanner Access Now Easy)
    ii  xsane-common          0.999-2      all    xsane architecture independent files
  2. Find your scanner in the official "SANE: Supported Devices" site.
  3. ... so my scanner uses the backend gt68xx. There are links to "Backend" and "Manpage".
  4. Follow the link to its manpage or type "man sane-gt68xx".
  5. So we need a firmware file, see "Backend" link, in my case A1fw.usb. Thanks to Mustek for providing them originally, no thanks for making them proprietary/non-free.
    Place this file in /usr/share/sane/gt68xx/ (or another place that gets backup'ed and link it there.
  6. The autodetection works, and configuration is already shipped in /etc/sane.d/gt68xx.conf without a need to edit.

General scanning tips and file size reduction:
  1. Choose tif format for scanning (lossless compression) and best compatibility. Also small for text.
  2. For passing on photos (contrary to text) export them to jpg format (small size, but lossy). But remember that jpg's loose quality every time they are manipulated, so keep the good tif original.
  3. To get smaller (and badder quality) pdf files the easiest way may be to use " INFILE.pdf OUTFILE.pdf". This script uses the following gs command:
    gs \
      -q -dNOPAUSE -dBATCH -dSAFER \
      -sDEVICE=pdfwrite \
      -dCompatibilityLevel=1.3 \
      -dPDFSETTINGS=/screen \
      -dEmbedAllFonts=true \
      -dSubsetFonts=true \
      -dColorImageDownsampleType=/Bicubic \
      -dColorImageResolution=72 \
      -dGrayImageDownsampleType=/Bicubic \
      -dGrayImageResolution=72 \
      -dMonoImageDownsampleType=/Bicubic \
      -dMonoImageResolution=72 \
      -sOutputFile="$2" \
Posted in Uncategorized
Views 1197 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration