logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sane-pnm - SANE PNM image reader pseudo-backend

Author

Andreas Beck, Gordon Matzigkeit, and David Mosberger

Bugs

If the sane-pnm backend is installed and saned(8) is used to allow users on remote computers to scan on the local machine, PNM files can be read by the remote user. This is limited to the files saned(8) can access (usually it's running as user "sane"). All PNM files can be read if saned(8) runs as root which isn't recommended anyway. The sane-pnm backend is disabled by default. If you want to use it, enable it with configure (see configure--help for details). Be sure that only trusted users can access the sane-pnm backend over saned(8).

Configuration

No configuration required.

Description

The sane-pnm library implements a SANE (Scanner Access Now Easy) backend that provides access to PNM (Portable aNyMap files, which covers PBM bitmap files, PGM grayscale files, and PPM pixmap files). The purpose of this backend is primarily to aid in debugging of SANE frontends. It also serves as an illustrative example of a minimal SANE backend.

Device Names

This backend provides two devices called 0 and 1.

Environment

SANE_DEBUG_PNM If the library was compiled with debug support enabled, this environment variable controls the debug level for this backend. E.g., a value of 128 requests all debug output to be printed. Smaller levels reduce verbosity.

Files

/usr/lib/x86_64-linux-gnu/sane/libsane-pnm.a The static library implementing this backend. /usr/lib/x86_64-linux-gnu/sane/libsane-pnm.so The shared library implementing this backend (present on systems that support dynamic loading).

Name

sane-pnm - SANE PNM image reader pseudo-backend

See Also

sane(7), saned(8) 14 Jul 2008 sane-pnm(5)

See Also