|
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, Unix operating systems such as Mac OS X, and other platforms. ==File formats and programs== Netpbm defines a set of graphics formats called the Netpbm formats: *The Portable Bit/Grey/PixMap formats PBM, PGM, PPM. They are collectively referred to as PNM (Portable aNy Map). *The more sophisticated PAM (Portable Arbitrary Map) format. 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 output either PBM, PGM or PPM. Tools importing PNM will read any of the three formats.) As a more complex example, Netpbm tools can convert 48×48 XBM to ''Ikon'' and eventually X-Face.〔(【引用サイトリンク】url=http://www.dairiki.org/xface/ )〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Netpbm」の詳細全文を読む スポンサード リンク
|