-->

Previous | Table of Contents | Next

Page 426

Printing

Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?.

BUGS

Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation.

SEE ALSO


ppm(5)

AUTHOR

Copyright" 1991 by Rick Vinci.

26 April 1991

ppmtotga

ppmtotga—Convert portable pixmap into a TrueVision Targa file

SYNOPSIS


ppmtotga [-mono|-cmap|-rgb][-norle][ppmfile]

DESCRIPTION

ppmtotga reads a portable pixmap as input and produces a TrueVision Targa file as output.

OPTIONS

-mono Forces Targa file to be of type 8-bit monochrome. Input must be a portable bitmap or a portable graymap.
-cmap Forces Targa file to be of type 24-bit colormapped. Input must be a portable bitmap, a portable graymap, or a portable pixmap containing no more than 256 distinct colors.
-rgb Forces Targa file to be of type 24-bit unmapped color.
-norle Disables run-length encoding, in case you have a Targa reader that can't read run-length encoded files.

All flags can be abbreviated to their shortest unique prefix. If no file type is specified, the most highly constained compatible type is used, where monochrome is more constained than colormapped, which is in turn more constained than unmapped.

BUGS

Does not support all possible Targa file types. Should really be in pnm, not ppm.

SEE ALSO


tgatoppm(1), ppm(5)

AUTHOR

Copyright" 1989, 1991 by Mark Shand and Jef Poskanzer.

28 October 1991

Page 427

ppmtouil

ppmtouil—Convert a portable pixmap into a Motif UIL icon file

SYNOPSIS


ppmtouil [-name uilname][ppmfile]

DESCRIPTION

ppmtouil reads a portable pixmap as input and produces a Motif UIL icon file as output.

If the program was compiled with an rgb database specified, and an RGB value from the ppm input matches an RGB value from the database, then the corresponding color name mnemonic is printed in the UIL's colormap. If no rgb database was compiled in, or if the RGB values don't match, then the color will be printed with the #RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.

OPTIONS

-name Allows you to specify the prefix string that is printed in the resulting UIL output. If not specified, it will default to the filename (without extension) of the ppmfile argument. If -name is not specified and no ppmfile is specified (that is, piped input), the prefix string will default to the string "noname".

All flags can be abbreviated to their shortest unique prefix.

SEE ALSO


ppm(5)

AUTHOR

Converted by Jef Poskanzer from ppmtoxpm.c, which is copyright" 1990 by Mark W. Snitily.

31 August 1990

ppmtoxpm

ppmtoxpm—Convert a portable pixmap into an X11 pixmap

SYNOPSIS


ppmtoxpm [-name <xpmname>] [-rgb <rgb-textfile>][<ppmfile>]

DESCRIPTION

ppmtoxpm reads a portable pixmap as input and produces an X11 pixmap (version 3) as output that can be loaded directly by the XPM library.

The -name option allows you to specify the prefix string which is printed in the resulting XPM output. If not specified, it will default to the filename (without extension) of the ppmfile argument. If -name is not specified and ppmfile is not specified (that is, piped input), the prefix string will default to the string "noname".

The -rgb option allows you to specify an X11 rgb text file for the lookup of color name mnemonics. This RGB text file is typically the /usr/lib/X11/rgb.txt of the MIT X11 distribution, but any file using the same format may be used. When specified and an RGB value from the ppm input matches an RGB value from the <rgb-textfile>, then the corresponding color name mnemonic is printed in the XPM's colormap. If -rgb is not specified, or if the RGB values don't match, then the color will be printed with the #RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.

All flags can be abbreviated to their shortest unique prefix.

Page 428

For example, to convert the file dot (found in /usr/include/X11/bitmaps), from xbm to xpm, you could specify


xbmtopbm dot | ppmtoxpm -name dot

or, with an rgb text file (in the local directory)


xbmtopbm dot | ppmtoxpm -name dot -rgb rgb.txt

BUGS

An option to match the closest (rather than exact) color name mnemonic from the rgb text would be a desirable enhancement.

Truncation of the least significant bits of an RGB value may result in nonexact matches when performing color name mnemonic lookups.

SEE ALSO


ppm(5)

XPM Manual by Arnaud Le Hors (lehors@mirsa.inria.fr).

AUTHOR

Copyright " 1990 by Mark W. Snitily. This tool was developed for Schlumberger Technologies, ATE Division, and with their permission is being made available to the public with the above copyright notice and permission notice.

Upgraded to XPM2 by Paul Breslaw, Mecasoft SA, Zurich, Switzerland (paul@mecazh.uu.ch); Thu, Nov 8, 16:01:17, 1990.

Upgraded to XPM version 3 by Arnaud le Hors (lehors@mirsa.inria.fr).

9 April 1991

ppmtoyuv

ppmtoyuv—Convert a portable pixmap into an Abekas YUV file

SYNOPSIS


ppmtoyuv [ppmfile]

DESCRIPTION

ppmtoyuv reads a portable pixmap as input and produces an Abekas YUV file as output.

SEE ALSO


yuvtoppm(1), ppm(5)

AUTHOR

Marc Boucher (<marc@PostImage.COM>), based on Example Conversion Program, A60/A64 Digital Video Interface Manual, page 69. Copyright" 1991 by DHD Post Image Inc. Copyright" 1987 by Abekas Video Systems Inc.

25 March 1991

ppmtoyuvsplit

ppmtoyuvsplit—Convert a portable pixmap into three subsampled raw YUV files

SYNOPSIS


ppmtoyuvsplit basename [ppmfile]

Previous | Table of Contents | Next