-->
Page 423
SEE ALSO
picttoppm(1), ppm(5), mcvert(1)
AUTHOR
Copyright" 1990 by Ken Yap (ken@cs.rocester.edu).
15 April 1990
ppmtopjConvert a portable pixmap to an HP PaintJet file
SYNOPSIS
ppmtopj [-gamma val][-xpos val][-ypos val][-back dark|lite][-rle][-center] [-render none|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither| monoclusterdither][ppmfile]
DESCRIPTION
ppmtopj reads a portable pixmap as input and converts it into a format suitable to be printed by an HP PaintJet printer.
For best results, the input file should be in 8-color RGB form; that is, it should have only the eight binary combinations of full-on and full-off primaries. You could get this by sending the input file through ppmquant -map with a mapfile such as
P3 8 1 255 0 0 0 2550 0 02550 0 0 255 255 255 0 255 0 255 0 255 255 255 255 255
Or else you could use ppmdither -red 2 -green 2 -blue 2.
OPTIONS
-rle | R un-length encode the image. (This can result in larger images.) |
-back | Enhance the foreground by indicating if the background is light or dark compared to the foreground. |
-render alg | Use an internal rendering algorithm (default dither). |
-gamma int | Gamma correct the image using the integer parameter as a gamma (default 0). |
-center | Center the image to an 8.5 by 11 page. |
-xpos pos | Move by pos pixels in the x direction. |
-ypos pos | Move by pos pixels in the y direction. |
REFERENCES
HP PaintJet XL Color Graphics Printer User's Guide
SEE ALSO
pnmdepth(1), ppmquant(1), ppmdither(1), ppm(5)
BUGS
Most of the options have not been tested because of the price of the paper.
AUTHOR
Copyright" 1991 by Christos Zoulas.
13 July 1991
Page 424
ppmtopjxlConvert a portable pixmap into an HP PaintJet XL PCL file
SYNOPSIS
ppmtopjxl [-nopack] [-gamma <n> ] [-presentation] [-dark] [-diffuse] [-cluster] [-dither] [-xshift <s> ] [-yshift <s> ] [-xshift <s> ] [-yshift <s> ] [-xsize|-width|-xscale <s> ] [-ysize|-height|-yscale <s> ] [ppmfile]
DESCRIPTION
ppmtopjxl reads a portable pixmap as input and produces a PCL file suitable for printing on an HP PaintJet XL printer as output.
The generated file is not suitable for printing on a normal PrintJet printer. The _nopack option generates a file that does not use the normal TIFF 4.0 compression method. This file might be printable on a normal PaintJet printer (not an XL).
The _gamma option sets the gamma correction for the image. The useful range for the PaintJet XL is approximately 0.6
to 1.5.
The rendering algorithm used for images can be altered with the -dither, -cluster, and -diffuse options. These options select ordered dithering, clustered ordered dithering, or error diffusion, respectively. The _dark option can be used to enhance images with a dark background when they are reduced in size. The _presentation option turns on presentation mode, in which two passes are made over the paper to increase ink density. This should be used only for images where quality is critical.
The image can be resized by setting the _xsize and _ysize options. The parameter to either of these options is interpreted as the number of dots to set the width or height to, but an optional dimension of pt (points), dp (decipoints), in (inches), or cm (centimeters) may be appended. If only one dimension is specified, the other will be scaled appropriately.
The options _width and _height are synonyms of _xsize and _ysize.
The _xscale and _yscale options can alternatively be used to scale the image by a simple factor.
The image can be shifted on the page by using the _xshift and _yshift options. These move the image the specified dimensions right and down.
SEE ALSO
ppm(5)
AUTHOR
Angus Duggan
14 March 1991
ppmtopuzzConvert a portable pixmap into an X11 puzzle file
SYNOPSIS
ppmtopuzz [ppmfile]
DESCRIPTION
ppmtopuzz reads a portable pixmap as input and produces an X11 puzzle file as output. A puzzle file is for use with the puzzle program included with the X11 distribution; puzzle's -picture flag lets you specify an image file.
Page 425
SEE ALSO
ppm(5), puzzle(1)
AUTHOR
Copyright" 1991 by Jef Poskanzer.
22 August 1990
ppmtorgb3Separate a portable pixmap into three portable graymaps
SYNOPSIS
ppmtorgb3 [ppmfile]
DESCRIPTION
ppmtorgb3 reads a portable pixmap as input and writes three portable graymaps as output, one each for red, green, and blue.
The output filenames are constructed by taking the input filename, stripping off any extension, and appending .red, .grn, and .blu. For example, separating lenna.ppm would result in lenna.red, lenna.grn, and lenna.blu. If the input comes from stdin, the names are noname.red, noname.grn, and noname.blu.
SEE ALSO
rgb3toppm(1), ppmtopgm(1), pgmtoppm(1), ppm(5), pgm(5)
AUTHOR
Copyright" 1991 by Jef Poskanzer.
10 January 1991
ppmtosixelConvert a portable pixmap into DEC sixel format
SYNOPSIS
ppmtosixel [-raw][-margin][ppmfile]
DESCRIPTION
ppmtosixel reads a portable pixmap as input and produces sixel commands (SIX) as output. The output is formatted for color printing, for example, for a DEC LJ250 color inkjet printer.
If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file.
OPTIONS
-raw | If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to compressed format in which identical adjacent pixels are replaced by repeat pixel commands. A raw file is often an order of magnitude larger than a compressed file and prints much slower. |
-margin | If -margin is not specified, the image will start at the left margin (of the window, paper, or whatever). If -margin is specified, a 1.5 inch left margin will offset the image. |