Is the a way to make hp-scan or scanimage to automatically select de right area to scan?

6,982

I am also using X*Y coordinates when using scanimage. For your use case, I would have used the following command:

scanimage --progress  --format tiff --mode Color --resolution 300 -l 0mm -t 0mm -x 85mm -y 58mm | convert - -resize 50% -quality 75 teste.jpg
Share:
6,982

Related videos on Youtube

msmafra
Author by

msmafra

Updated on September 18, 2022

Comments

  • msmafra
    msmafra over 1 year

    I'm trying to make an non network scanner to work with linux running via command line and hiding it with php/html. The commands to scan hp-scan and scanimage are working well but they don't automatically select the non blank are to scan. For example if I scan a business card (85mm x 58mm) it scans the entire scanner area. Does sane have an utility to fix that? I am using ubuntu 13 and mint 16.

    scanimage --mode Color --resolution 100 --progress --compression JPEG --jpeg-quality 80 --format=tiff | convert tiff:- teste.jpg
    
    • NKN
      NKN about 10 years
      which commands are you using?
    • msmafra
      msmafra about 10 years
      This is one: sudo scanimage -p --mode=Color --compression=JPEG --jpeg-quality=80 --resolution=100 --format=tiff | convert tiff:- test.jpg
    • Michael
      Michael almost 5 years
      where did you find the "--jpeg-quality" option document? My man page does not list it!
  • msmafra
    msmafra over 9 years
    Thank you. I've already set sane as server for remote scan.