LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-19-2010, 12:08 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,720
Blog Entries: 3

Rep: Reputation: 107Reputation: 107
howto scan and crop to image size automatically


I launch xane and scan something -- image or document.
The original is smaller than US-legal (the size of my flatbed scanner).
I get an image with a lot of bottom and right edge white space
that I must then crop as a separate step.

Q1: How do I configure so that I get the image
and it gets automatically cropped to the size of the original?

Stumped,
~~~ 0;-Dan
 
Old 08-19-2010, 12:27 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
man xsane

there are options to control size
 
Old 08-19-2010, 12:28 PM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Can't you just change the area you scan from within xsane? I've found Skanlite to be simple to use, and allows you to select a region to scan, in your case, the document you're scanning rather than the entire area of your scanner.

Otherwise, if you know how exactly much you want to crop from the image, you could either use ImageMagick from the command-line to crop the images, or if you're more comfortable with a GUI, look into Dave's Batch Processor for the GIMP (it'll probably be in your distro's repositories). This will allow you to load a series of images and then do simple operations (e.g. crop) on all those images.

Along the same lines, there's a GIMP script called DivideScannedImages which will allow you to separate multiple images from a single scanned image. It's available here: http://registry.gimp.org/files/DivideScannedImages.scm.
 
Old 08-19-2010, 08:37 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,720

Original Poster
Blog Entries: 3

Rep: Reputation: 107Reputation: 107
First, thanks to all who replied. I hope there will be other responses.
Second, I meant xsane as the program name.

I run the program from the Gnome panel as Applications --> Graphics --> Xsane instead of the command line /usr/bin/xsane I'm not sure how to specify the scanned image area to the gui. I'll look into that.

I'd like to be able to "create document from scanner" from within the context menu for JPG, PDF, and OpenOffice documents -- especially if I can get things cropped automatically.

I have not learned much about using GIMP. I'll look into that, too.

~~~ 0;-Dan
 
Old 08-20-2010, 05:08 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by SaintDanBert View Post
I'm not sure how to specify the scanned image area to the gui. I'll look into that.
Try this: http://www.xsane.org/doc/sane-xsane-preview-doc.html It seems you can select an area to scan using a preview of the scan.
 
  


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
Tvtime Howto Scan Channels hellmet Linux - Software 7 03-11-2014 10:08 AM
What is the easiest way to increase the size of a Xen Image made from an image? abefroman Linux - Software 4 12-14-2009 11:11 PM
Difference in the RAM's size and the size of the image of RAM (taken via dd), Why? Usmanaj Linux - Newbie 2 08-01-2009 01:17 AM
LXer: Howto Convert Vmware Image to Virtualbox Image LXer Syndicated Linux News 0 03-11-2009 10:01 AM
how to scan automatically (no gui) Xeratul Linux - Newbie 2 07-31-2006 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:50 PM.

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
Open Source Consulting | Domain Registration