LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2006, 04:28 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,666

Rep: Reputation: 127Reputation: 127
Smile how to scan automatically (no gui)


how to scan automatically (no gui)

I have xsane nistalled for scanning;
I would like to scan my documents quickly just via command line at 300 dpi

Would someone knows the trick

thank you !
 
Old 07-23-2006, 04:53 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
how to scan automatically (no gui)
You might want to make sure the scanner is detected by the command:
sane-find-scanner
Then, you can get a nice list of commands by typing:
scanimage --help
You need to use -d, --device-name=DEVICE in the scanning command.
 
Old 07-31-2006, 02:53 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,666

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by homey
You might want to make sure the scanner is detected by the command:
sane-find-scanner
Then, you can get a nice list of commands by typing:
scanimage --help
You need to use -d, --device-name=DEVICE in the scanning command.
I made a little script for scanning at 300 DPI:

Code:
#!/bin/sh
cd
[ ! -d "scanned_documents" ] && mkdir "scanned_documents"
## CTRL SHIFT ALT S    to scan your document in grey
## CTRL SHIFT ALT Flag S    to scan your document with colors
cd scanned_documents
echo "--- Scanning ... ---"
filename_default="scanned_$(date)"
filetiff="$(echo $filename_default).tiff"
filejpeg="$(echo $filename_default).jpg"
echo "$filetiff" 
echo "$filejpeg"
## this makes a 300 DPI tiff file
scanimage --mode gray --format tiff  > "$filetiff"
convert "$filetiff"  "$filejpeg"
rm -rf "$filetiff" 
echo "The file: $(echo $filejpeg) has just been scanned."
echo "--- --- "
## need NTP support
Thank you !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LCD monitor: "out of scan range" won't load gui...how to add or configure peetkato Linux - Newbie 4 01-31-2006 07:29 AM
Automatically loading the GUI stalefries VectorLinux 8 09-15-2005 03:46 AM
automatically starting gui after login marsques Slackware 9 07-25-2005 07:38 PM
To SCAN or not to SCAN? HP750xi Suse 9.2 Pro newtwolinux Linux - Hardware 4 06-22-2005 05:02 PM
GUI automatically answer tools on linux billzhu123 Linux - Enterprise 2 05-05-2005 07:44 AM


All times are GMT -5. The time now is 10:40 AM.

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