Netpbm

From Wikipedia, the free encyclopedia
Netpbm
Developer(s) Bryan Henderson
Stable release 10.40 / September 26, 2007
Written in C, Perl, Unix Shell
Operating system Cross-platform
License various, believed to be DFSG free
Website netpbm.sourceforge.net

Netpbm is an open source package of graphics programs and a programming library, used mainly in the Unix world. It is included in all major open source Unix-like operating system distributions and also works on other Unix-like operating systems, Windows, Mac OS X, and other platforms.

File formats and programs

Netpbm defines a set of graphics formats called the Netpbm formats:

Netpbm contains over 220 separate programs in the package, most of which have "pbm", "pgm", "ppm", "pam", or "pnm" in their names. For example, you might use pamscale to shrink an image by 10%, pamcomp to overlay one image on top of another, pbmtext to create an image of text or reduce the number of colors in an image with pnmquant.

The Netpbm package can, for example, use two successive conversion programs to turn a picture in the PBM format into a .bmp file:

pgmtoppm "#FFFFFF" somepic.pbm  > somepic.ppm
ppmtobmp somepic.ppm > somepic.bmp

This is more commonly done as a pipeline, to save execution time and to avoid leaving a temporary somepic.ppm file around:

pgmtoppm "#FFFFFF" somepic.pbm | ppmtobmp > somepic.bmp

The Netpbm programs are frequently used as intermediates to convert between obscure formats. For instance, there may be no tool to convert an X11 window dump (XWD format) directly to a Macintosh PICT file, but one can do this by running xwdtopnm, then ppmtopict. (Tools which say that they output PNM may output PPM, PGM or PBM. Tools importing PNM will read any of the three formats.)

History

The PBM (black and white) format was invented by Jef Poskanzer in the mid-1980s. At the time, there was no standard, reliable way to send binary files in email, and attempting to send anything other than 7-bit ASCII in email often resulted in data corruption. PBM was designed to allow images to be sent via email without being corrupted. Poskanzer released the forerunner of Netpbm, called Pbmplus in 1988. By the end of 1988, Poskanzer had developed the PGM (greyscale) and PPM (color) formats and released them with Pbmplus.

The last release of Pbmplus was on December 10, 1991. Poskanzer never released any further updates, and in 1993 Netpbm was developed to replace it. At first it was nothing more than a renamed release of Pbmplus, but updates continued to occur until 1995 when the package again became abandoned. In 1999 the Netpbm package was picked up by its present maintainer, Bryan Henderson.

In 2000, PAM was added to the file formats of the Netpbm library allowing an alpha channel.[1]

The name Netpbm came from the program developers collaborating over the Internet, which was notable at the time. (The NetBSD operating system and Nethack game got their names similarly.)

See also

References

  1. http://netpbm.sourceforge.net/doc/pam.html

External links

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.