Scanner Access Now Easy
Template:Short description Template:More footnotes {{#invoke:Infobox|infobox}}Template:Template other{{#invoke:Check for unknown parameters | check | showblankpositional=1 | unknown = Template:Main other | preview = Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y | AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo upright | logo size | logo title | logo_alt | logo_caption | logo_upright | logo_size | logo_title | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot upright | screenshot size | screenshot title | screenshot_alt | screenshot_upright | screenshot_size | screenshot_title | service_name | size | standard | title | ver layout | website | qid }}Template:Main other Scanner Access Now Easy (SANE) is an open-source application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, handheld scanner, video- and still-cameras, frame grabbers, etc.). The SANE API is public domain. It is commonly used on Linux.
ArchitectureEdit
SANE differs from TWAIN in that it is cleanly separated into frontend and backend (user programs and scanner drivers, respectively). Whereas a TWAIN driver handles the user interface as well as communications with the scanner hardware, a SANE driver only provides an interface with the hardware and describes a number of "options" which drive each scan.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> These options specify parameters such as the resolution of the scan, the scan area, colour model, etc. Each option has a name, and information about its type, units, and range or possible values (e.g., enumerated list). By convention there are several "well known" options that frontends can supply using convenient GUI interaction e.g., the scan area options can be set by dragging a rectangular outline over a preview image. Other options can be presented using GUI elements appropriate to their type e.g., sliders, drop-down lists, etc.
One consequence of this separation is that network scanning is easily implemented with no special handling in either the front ends or back ends. On a host with a scanner, the saned daemon runs and handles network requests. On client machines a "net" backend (driver) connects to the remote host to fetch the scanner options, and perform previews and scans. The saned daemon acts as a frontend locally, but simply passes requests and data between the network connections and the local scanner. Similarly, the "net" backend passes requests and data between the local frontend and the remote host.
Various types of unsupervised batch scanning are also possible with a minimum of support needed in the backend (driver). Many scanners support the attachment of document feeders which allow a large number of sheets of paper to be automatically scanned in succession. Using the SANE API, the frontend simply has to "play back" the same set of options for each scan, driving the document feed in between scans to load the next sheet of paper. The frontend only has to obtain the set of options from the user once.
Graphical user interfacesEdit
Several user interfaces have been written to combine SANE with an easy user method of controlling it.
gscan2pdfEdit
gscan2pdf is an interface for scanning documents to PDF on the GNOME desktop that uses SANE to communicate with the scanner. It is available under the GPL. It includes common editing tools, e.g., for rotating or cropping pages. It is also able to perform OCR using several optional OCR tools and save a searchable PDF. PDF files can be further downsampled upon saving.<ref name="gscan2pdf">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
Simple ScanEdit
Simple Scan is a simplified GUI using SANE that is intended to be easier to use and better integrate into the GNOME desktop than XSane. It was initially written for Ubuntu and is maintained by Robert Ancell of Canonical Ltd. for Linux. Simple Scan was first fielded as part of Ubuntu 10.04 Lucid Lynx and is also used in Lubuntu (until Lubuntu 18.04 LTS) and Xubuntu. It is now part of the GNOME project.<ref name="Launchpad">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="DevTeam">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="SSHist">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="UbuntuUpdates">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="OMG">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="Gnome">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
SkanliteEdit
Skanlite is a simple image scanning application, based on the KSane backend. Kåre Särs is the lead developer.<ref>Template:Citation</ref> In KDE 4 Skanlite replaced Kooka of KDE 3 as default KDE scanning application.<ref>Template:Citation</ref>
Skanlite is based on libksane, an interface provided by KDE for SANE libraries to control flatbed scanners.<ref>Template:Citation</ref> It also works with networked scanners.<ref name="Skanlite on userbase.kde.org">Template:Citation</ref>
SwingSaneEdit
SwingSane is a cross-platform, Java front end for SANE, written and maintained by Roland Quast. It is available for Microsoft Windows, Linux, Mac OS X and is licensed under the Apache 2.0 License.<ref name="SWINGSANE">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The source code for the project can also be adapted for use with an existing Swing application.<ref name="SWINGSANESRC">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
XSaneEdit
XSane is a graphical front end for SANE written by Oliver Rauch. It is available for Microsoft Windows, Linux, UNIX, and OS/2 and is licensed under the GNU General Public License (GPL).<ref name="XSANE">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The Windows version only allows a Windows computer to access a scanner that is attached to a Unix, OS/2 or Mac OS X network computer, but not generally to the local Windows computer. Only the "complete" sane-back-ends versions will possibly work with some scanner models connected locally.<ref name="WIN32">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
See alsoEdit
- Image and Scanner Interface Specification (ISIS) – Open industry standard interface
- TWAIN – Software API for local drivers that are bundled with control GUI
- Windows Image Acquisition (WIA) – Proprietary API from Microsoft