LinuxCommandLibrary

brushtopbm

Convert Sun rasterfile to portable bitmap

TLDR

Generate a PBM file as output for a Xerox doodle brush file as input

$ brushtopbm [path/to/file.brush]
copy

Display version
$ brushtopbm [[-v|-version]]
copy

SYNOPSIS

brushtopbm [brushfile]

PARAMETERS

[brushfile]
    The input Sun rasterfile. If not specified, brushtopbm reads from standard input.

DESCRIPTION

brushtopbm converts a Sun rasterfile (also known as a Sun brush file) into a portable bitmap (PBM) image. The Sun rasterfile format was commonly used on Sun Microsystems workstations.

This command is useful for processing old or specialized image files that might not be directly readable by modern image viewing and editing software. The resulting PBM image can then be further converted into other formats or manipulated using a variety of tools in the Netpbm suite. The conversion process reduces the image to a black and white (monochrome) representation, as PBM format only supports that.

CAVEATS

brushtopbm only handles a subset of Sun rasterfile formats. It is mainly designed for monochrome or very simple grayscale images. Color images will not be converted properly, and may produce unpredictable output.
It only outputs PBM format, and does not handle color conversion.

USAGE EXAMPLE

To convert a Sun rasterfile named 'my_image.ras' to a PBM file named 'my_image.pbm', you would use the command:

brushtopbm my_image.ras > my_image.pbm

HISTORY

brushtopbm is part of the Netpbm suite, a collection of tools for manipulating bitmap images.
Netpbm has been developed and maintained since the late 1980s/early 1990s, and it remains a useful set of utilities for image conversion and manipulation.

SEE ALSO

pbmto***(1), rasttopnm(1), sunraster(5)

Copied to clipboard