Linux Commands Examples

A great documentation place for Linux commands

ppmtopj

convert a portable pixmap to an HP PaintJet file


see also : pnmdepth - ppmquant - ppmdither

Synopsis

ppmtopj [-gamma val] [-xpos val] [-ypos val] [-back dark|lite] [-rle] [-center] [-render none|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither] [ppmfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

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; i.e. it should have only the 8 binary combinations of full-on and full-off primaries. You could get this by sending the input file through ppmquant -map with a map file such as:
P3
8 1
255
0 0 0 255 0 0 0 255 0 0 0 255
255 255 0 255 0 255 0 255 255 255 255 255
Or else you could use use ppmdither -red 2 -green 2 -blue 2.

options

-rle

Run length encode the image. (This can result in larger images)

-back

Enhance the foreground by indicating if the background is light or dark compated to the foreground.

-render alg

Use an internal rendering algorithm (default dither).

-gamma int

Gamma correct the image using the integet 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


bugs

Most of the options have not been tested because of the price of the paper.


see also

pnmdepth , ppmquant , ppmdither , ppm


author

Copyright (C) 1991 by Christos Zoulas.

How can this site be more helpful to YOU ?


give  feedback