From f7b68d70a1038043c27cc175ec10e52b8fc607a9 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Wed, 8 Nov 2023 10:24:46 +0100 Subject: [PATCH] pbmtolj, pjtoppm, pnmtopclxl, ppmtolj, ppmtopj, ppmtospu, sldtoppm, spctoppm, sputoppm, thinkjettopbm: add pages (#11409) * pbmtolj, pjtoppm, pnmtopclxl, ppmtolj, ppmtopj, ppmtospu, sldtoppm, spctoppm, sputoppm, thinkjettopbm: add pages * Update pages/common/thinkjettopbm.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/common/pnmtopclxl.md * Update pages/common/ppmtopj.md Co-authored-by: K.B.Dharun Krishna --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/common/pbmtolj.md | 16 ++++++++++++++++ pages/common/pjtoppm.md | 8 ++++++++ pages/common/pnmtopclxl.md | 16 ++++++++++++++++ pages/common/ppmtolj.md | 16 ++++++++++++++++ pages/common/ppmtopj.md | 16 ++++++++++++++++ pages/common/ppmtospu.md | 12 ++++++++++++ pages/common/sldtoppm.md | 12 ++++++++++++ pages/common/spctoppm.md | 8 ++++++++ pages/common/sputoppm.md | 8 ++++++++ pages/common/thinkjettopbm.md | 12 ++++++++++++ 10 files changed, 124 insertions(+) create mode 100644 pages/common/pbmtolj.md create mode 100644 pages/common/pjtoppm.md create mode 100644 pages/common/pnmtopclxl.md create mode 100644 pages/common/ppmtolj.md create mode 100644 pages/common/ppmtopj.md create mode 100644 pages/common/ppmtospu.md create mode 100644 pages/common/sldtoppm.md create mode 100644 pages/common/spctoppm.md create mode 100644 pages/common/sputoppm.md create mode 100644 pages/common/thinkjettopbm.md diff --git a/pages/common/pbmtolj.md b/pages/common/pbmtolj.md new file mode 100644 index 000000000..763a64911 --- /dev/null +++ b/pages/common/pbmtolj.md @@ -0,0 +1,16 @@ +# pbmtolj + +> Convert a PBM file to an HP LaserJet file. +> More information: . + +- Convert a PBM file to an HP LaserJet file: + +`pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}` + +- Compress the output file using the specified method: + +`pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}` + +- Specify the required resolution: + +`pbmtolj -resolution {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}` diff --git a/pages/common/pjtoppm.md b/pages/common/pjtoppm.md new file mode 100644 index 000000000..b02ab14ba --- /dev/null +++ b/pages/common/pjtoppm.md @@ -0,0 +1,8 @@ +# pjtoppm + +> Convert a HP PaintJet file to PPM. +> More information: . + +- Convert a HP PaintJet file to PPM: + +`pjtoppm {{path/to/input.pj}} > {{path/to/output.ppm}}` diff --git a/pages/common/pnmtopclxl.md b/pages/common/pnmtopclxl.md new file mode 100644 index 000000000..1fd9ec483 --- /dev/null +++ b/pages/common/pnmtopclxl.md @@ -0,0 +1,16 @@ +# pnmtopclxl + +> Convert a PNM file to an HP LaserJet PCL XL printer stream. +> More information: . + +- Convert PNM files to an HP LaserJet PCL XL printer stream: + +`pnmtopclxl {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` + +- Specify the resolution of the image as well as the location of the page from the upper left corner of each image: + +`pnmtopclxl -dpi {{resolution}} -xoffs {{x_offset}} -yoffs {{y_offset}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` + +- Generate a duplex printer stream for the specified paper format: + +`pnmtopclxl -duplex {{vertical|horizontal}} -format {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` diff --git a/pages/common/ppmtolj.md b/pages/common/ppmtolj.md new file mode 100644 index 000000000..c5a67b476 --- /dev/null +++ b/pages/common/ppmtolj.md @@ -0,0 +1,16 @@ +# ppmtolj + +> Convert a PPM file to an HP LaserJet PCL 5 Color file. +> More information: . + +- Convert a PPM file to an HP LaserJet PCL 5 Color file: + +`ppmtolj {{path/to/input.ppm}} > {{path/to/output.lj}}` + +- Apply a gamma correction using the specified gamma value: + +`ppmtolj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.lj}}` + +- Specify the required resolution: + +`ppmtolj -resolution {{75|100|150|300|600}} {{path/to/input.ppm}} > {{path/to/output.lj}}` diff --git a/pages/common/ppmtopj.md b/pages/common/ppmtopj.md new file mode 100644 index 000000000..9191ceba0 --- /dev/null +++ b/pages/common/ppmtopj.md @@ -0,0 +1,16 @@ +# ppmtopj + +> Convert a PPM file to an HP PaintJet file. +> More information: . + +- Convert a PPM file to an HP PaintJet file: + +`ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}` + +- Move the image in the x and y direction: + +`ppmtopj -xpos {{dx}} -ypos {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}` + +- Explicitly specify a gamma value: + +`ppmtopj -gamma {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}` diff --git a/pages/common/ppmtospu.md b/pages/common/ppmtospu.md new file mode 100644 index 000000000..6021e92e2 --- /dev/null +++ b/pages/common/ppmtospu.md @@ -0,0 +1,12 @@ +# ppmtospu + +> Convert a PPM file to an Atari Spectrum 512 image. +> More information: . + +- Convert a PPM file to an Atari Spectrum 512 image: + +`ppmtospu {{path/to/input.ppm}} > {{path/to/output.spu}}` + +- Use a dithering matrix of the specified size (0 means no dithering): + +`ppmtospu -d{{0|2|4}} {{path/to/input.ppm}} > {{path/to/output.spu}}` diff --git a/pages/common/sldtoppm.md b/pages/common/sldtoppm.md new file mode 100644 index 000000000..0f8beb22d --- /dev/null +++ b/pages/common/sldtoppm.md @@ -0,0 +1,12 @@ +# sldtoppm + +> Convert an AutoCAD slide file to a PPM image. +> More information: . + +- Convert an SLD file to a PPM image: + +`sldtoppm {{path/to/input.sld}} > {{path/to/output.ppm}}` + +- Compensate for non-square pixels by scaling the width of the image: + +`sldtoppm -adjust {{path/to/input.sld}} > {{path/to/output.ppm}}` diff --git a/pages/common/spctoppm.md b/pages/common/spctoppm.md new file mode 100644 index 000000000..42116f3be --- /dev/null +++ b/pages/common/spctoppm.md @@ -0,0 +1,8 @@ +# spctoppm + +> Convert an Atari compressed Spectrum image to a PPM image. +> More information: . + +- Convert an SPC file to a PPM image: + +`spctoppm {{path/to/input.spc}} > {{path/to/output.ppm}}` diff --git a/pages/common/sputoppm.md b/pages/common/sputoppm.md new file mode 100644 index 000000000..45a1a007d --- /dev/null +++ b/pages/common/sputoppm.md @@ -0,0 +1,8 @@ +# sputoppm + +> Convert an Atari uncompressed Spectrum image to a PPM image. +> More information: . + +- Convert an SPU file to a PPM image: + +`sputoppm {{path/to/input.spu}} > {{path/to/output.ppm}}` diff --git a/pages/common/thinkjettopbm.md b/pages/common/thinkjettopbm.md new file mode 100644 index 000000000..656bc2203 --- /dev/null +++ b/pages/common/thinkjettopbm.md @@ -0,0 +1,12 @@ +# thinkjettopbm + +> Convert a HP ThinkJet printer commands file to a PBM file. +> More information: . + +- Convert a HP ThinkJet printer commands file to a PBM file: + +`thinkjettopbm {{path/to/input}} > {{path/to/output.pbm}}` + +- Print debug information to `stderr`: + +`thinkjettopbm -d {{path/to/input}} > {{path/to/output.pbm}}`