LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtopj

Convert PPM to HP PaintJet format

TLDR

Convert PPM to HP PaintJet format
$ ppmtopj [input.ppm] > [output.pj]
copy
Specify gamma correction
$ ppmtopj -gamma [1.0] [input.ppm] > [output.pj]
copy
Center the image on an 8.5 by 11 page
$ ppmtopj -center [input.ppm] > [output.pj]
copy
Use run-length encoding
$ ppmtopj -rle [input.ppm] > [output.pj]
copy
Apply dithering render mode
$ ppmtopj -render dither [input.ppm] > [output.pj]
copy

SYNOPSIS

ppmtopj [-gamma val] [-xpos val] [-ypos val] [-back dark|lite] [-rle] [-center] [-render mode] [ppmfile]

DESCRIPTION

ppmtopj reads a PPM image and converts it to HP PaintJet printer format for direct printing. For best results, the input should be in 8-color RGB form (binary combinations of full-on and full-off primaries). Part of the Netpbm toolkit.

PARAMETERS

-gamma val

Gamma correction value (default 0).
-xpos val
Move by val pixels in the x direction.
-ypos val
Move by val pixels in the y direction.
-back dark|lite
Enhance foreground by indicating if background is light or dark.
-rle
Run-length encode the image (may result in larger images).
-center
Center the image on an 8.5 by 11 page.
-render mode
Internal rendering algorithm: none, snap, bw, dither (default), diffuse, monodither, monodiffuse, clusterdither, monoclusterdither.

SEE ALSO

Copied to clipboard
Kai