xsane(1)
โจ xsane โ the manual, but make it cute โจ
okay bestie, buckle up ๐ this is the manual page for xsane(1) from the General Commands Manual section, and we're gonna get you so comfy with it. no cap.
๐ธ NAME ๐ธ
xsane โ scanner frontend for SANE ๐ฆ
๐ SYNOPSIS ๐
xsane [--version|-v] [--license|-l] [--device-settings file |-d file]
[--viewer|-V] [--save|-s] [--copy|-c] [--fax|-f] [--mail|-m] [--no-mode-
selection|-n] [--Fixed|-F] [--Resizable|-R] [--print-filenames|-p]
[--force-filename name |-N name] [--display d] [--sync] [devicename]
๐ DESCRIPTION ๐
so xsane gives you a whole graphical user-interface to control an image acquisition device โ like, say, a flatbed scanner, your classic. it lets you preview and scan individual images, and you can summon it either straight from the command-line or through The GIMP image manipulation program.
- If you go the command-line route,
xsaneis a stand-alone program that saves acquired images in a suitable PNM format (PBMfor black-and-white images,PGMfor grayscale images, andPPMfor color images) โ or it converts the image to JPEG, PNG, PS or TIFF. slay, options. - If you go the GIMP route, the images are passed directly to The GIMP for further processing. iconic.
xsane accesses image acquisition devices through the SANE (Scanner Access Now Easy) interface. the list of available devices depends on installed hardware and configuration, fr fr.
When you invoke it without an explicit devicename argument, xsane presents a dialog listing all known and available devices ๐ซถ. But to access an available device that is not known to the system, the devicename must be specified explicitly. the format of devicename is backendname:devicefile (eg: umax:/dev/sga).
๐ RUNNING UNDER THE GIMP ๐
to run xsane under gimp(1), you should at first make sure that xsane is compiled with gimp support by entering xsane -v on a shell. if xsane is compiled with gimp support then simply set a symbolic link from the xsane-binary to one of the gimp(1) plug-ins directories.
for example, for gimp-1.0.x the command:
ln -s /usr/bin/xsane ~/.gimp/plug-ins/
for gimp 1.2.x the command:
ln -s /usr/bin/xsane ~/.gimp-1.2/plug-ins/
and for gimp 2.0.x the command:
ln -s /usr/bin/xsane ~/.gimp-2.0/plug-ins/
this adds a symlink for the xsane binary to the user's plug-ins directory. after creating this symlink, xsane will be queried by gimp(1) the next time it's invoked. from then on, xsane can be invoked through Xtns->XSane->Device dialog... (gimp-1.0.x) or through File->Acquire->XSane->Device dialog... (gimp-1.2.x and 2.0.x) menu entry โจ.
you'll also find that the Xtns->XSane or File->Acquire->XSane menu contains short-cuts to the SANE devices that were available at the time the xsane was queried. note that gimp(1) caches these short-cuts in ~/.gimp/pluginrc. thus, when the list of available devices changes (e.g., a new scanner is installed or the device of the scanner has changed), then it is typically desirable to rebuild this cache ๐. to do this, you can either touch(1) the xsane binary (e.g., touch /usr/bin/xsane) or delete the plugin cache (e.g., rm ~/.gimp/pluginrc). either way, invoking gimp(1) afterwards will cause the pluginrc to be rebuilt.
โ ๏ธ whenxsaneis started from the gimp then it is not possible to add a devicename explicitly. you have to make the devices known to the system by configuringsane-dll,sane-netandsaned. periodt.
โจ OPTIONS โจ
--version,-vโ if this flag is given,xsaneprints a version information, some information about gtk+ and gimp version it is compiled against, and lists the supported file formats, then it exits. bye ๐--license,-lโ when this flag is given,xsaneprints license information and exits.--device-settings,-dโ reads the next option as default filename for device settings. the extension.drcmust not be included.--viewer,-Vโ forcesxsaneto start in viewer mode ๐--save,-sโ forcesxsaneto start in save mode ๐พ--copy,-cโ forcesxsaneto start in copy mode ๐จ๏ธ--fax,-fโ forcesxsaneto start in fax mode ๐--mail,-mโ forcesxsaneto start in mail mode ๐ง--no-mode-selection,-nโ disables the menu for xsane mode selection (viewer, save, copy, fax, mail).--Fixed,-Fโ uses a fixed, non resizable main window. the flag overwrites the preferences value.--Resizable,-Rโ uses a scrolled and resizable main window. the flag overwrites the preferences value.--print-filenames,-pโxsaneprints the names of created files to the standard output ๐ฃ๏ธ--force-filename,-Nโ reads the next option as default image filename. the name should be of the formatname-001.ext. (or any other number instead of001) โ that001part will be used as a filename counter ifxsaneis so configured. โ ๏ธ beware that the number of digits must correspond to the configuration ofxsane. the selection box for filenames is disabled. this option normally should be used with the option--no-mode-selectionand--save.--displayโ selects the X11 display used to present the graphical user-interface (seeX(1)for details).--syncโ requests a synchronous connection with the X11 server. this is for debugging purposes only ๐ง
๐ ENVIRONMENT ๐
SANE_DEFAULT_DEVICEโ is used to preselect the device in the device dialog. this way you only have to accept the device (<ENTER>or OK-Button). so convenient, honestly ๐ซถ
๐ FILES ๐
$HOME/.sane/xsane/xsane.rcโ this files holds the user preferences. normally, this file should not be manipulated directly. instead, the user should customize the program through thePreferencesmenu.$HOME/.sane/xsane/devicename.rcโ for each device, there is one rc-file that holds the saved settings for that particular device. normally, this file should not be manipulated directly. instead, the user should use thexsaneinterface to select appropriate values and then save the device settings using thePreferences->Save Device Settingsmenubar entry./usr/share/sane/xsane/xsane-style.rcโ this system-wide file controls the aspects of the user-interface such as colors and fonts. it is a GTK style file and provides fine control over the visual aspects of the user-interface ๐$HOME/.sane/xsane/xsane-style.rcโ this file serves the same purpose as the system-wide style file. if present, it takes precedence over the system wide style file ๐
๐ฆ SEE ALSO ๐ฆ
gimp(1), xscanimage(1), scanimage(1), sane-dll(5), sane-net(5), saned(1), sane-scsi(5), sane-usb(5), sane-"backendname"(5)
๐ AUTHOR ๐
Oliver Rauch <Oliver.Rauch@rauch-domain.de>
and that's the whole thing, bestie ๐ this page is from 15 Jun 2002 and lives in the xsane(1) manual โ go scan something gorgeous โจ๐
๐ฆ where this page comes from
- debian bookworm: xsane 0.999-12.1~deb12u1 ยท GPL-2.0-or-later
- debian trixie: xsane 0.999-12.2 ยท GPL-2.0-or-later
- ubuntu jammy: xsane 0.999-11ubuntu1 ยท GPL-2.0-or-later
- ubuntu noble: xsane 0.999-12ubuntu4 ยท GPL-2.0-or-later
- ubuntu questing: xsane 0.999-12.2
- ubuntu resolute: xsane 0.999-13 ยท GPL-2.0-or-later
- ubuntu stonking: xsane 0.999-13 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms