xsane(1)

๐Ÿ“ฆ
version 0.999 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ 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, xsane is a stand-alone program that saves acquired images in a suitable PNM format (PBM for black-and-white images, PGM for grayscale images, and PPM for 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.

โš ๏ธ when xsane is 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 configuring sane-dll, sane-net and saned. periodt.

โœจ OPTIONS โœจ

  • --version, -v โ€” if this flag is given, xsane prints 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, xsane prints license information and exits.
  • --device-settings, -d โ€” reads the next option as default filename for device settings. the extension .drc must not be included.
  • --viewer, -V โ€” forces xsane to start in viewer mode ๐Ÿ‘€
  • --save, -s โ€” forces xsane to start in save mode ๐Ÿ’พ
  • --copy, -c โ€” forces xsane to start in copy mode ๐Ÿ–จ๏ธ
  • --fax, -f โ€” forces xsane to start in fax mode ๐Ÿ“ 
  • --mail, -m โ€” forces xsane to 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 โ€” xsane prints 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 format name-001.ext. (or any other number instead of 001) โ€” that 001 part will be used as a filename counter if xsane is so configured. โš ๏ธ beware that the number of digits must correspond to the configuration of xsane. the selection box for filenames is disabled. this option normally should be used with the option --no-mode-selection and --save.
  • --display โ€” selects the X11 display used to present the graphical user-interface (see X(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 the Preferences menu.
  • $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 the xsane interface to select appropriate values and then save the device settings using the Preferences->Save Device Settings menubar 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 โœจ๐Ÿ’–