pbmtopgm, pbmtoplot, pbmtoppa, pbmtoptx, pbmupc, pgmenhance: add pages (#12224)

pull/23/head
Juri Dispan 2024-02-11 06:23:21 +01:00 committed by GitHub
parent 9c44d53331
commit fa9fe07755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 62 additions and 0 deletions

9
pages/common/pbmtopgm.md Normal file
View File

@ -0,0 +1,9 @@
# pbmtopgm
> Convert a PBM image to PGM by averaging areas surrounding individual pixels.
> See also: `pnmconvol`, `pamditherbw`.
> More information: <https://netpbm.sourceforge.net/doc/pbmtopgm.html>.
- Convert PBM image to PGM by averaging the `w`x`h`-sized area surrounding each pixel:
`pbmtopgm {{w}} {{h}} {{path/to/image.pbm}} > {{path/to/output.pgm}}`

View File

@ -0,0 +1,8 @@
# pbmtoplot
> Convert a PBM image into a UNIX plot file.
> More information: <https://netpbm.sourceforge.net/doc/pbmtoplot.html>.
- Convert a PBM image into a UNIX plot file:
`pbmtoplot {{path/to/image.pbm}} > {{path/to/output.plot}}`

12
pages/common/pbmtoppa.md Normal file
View File

@ -0,0 +1,12 @@
# pbmtoppa
> Convert a PBM image to HP Printer Performance Architecture format.
> More information: <https://netpbm.sourceforge.net/doc/pbmtoppa.html>.
- Convert a PBM image into a PPA file:
`pbmtoppa {{path/to/image.pbm}} > {{path/to/output.ppa}}`
- Specify the desired dots-per-inch and paper size:
`pbmtoppa -d {{300}} -s {{a4}} {{path/to/image.pbm}} > {{path/to/output.ppa}}`

8
pages/common/pbmtoptx.md Normal file
View File

@ -0,0 +1,8 @@
# pbmtoptx
> Convert a PBM image into Printronix printer graphics.
> More information: <https://netpbm.sourceforge.net/doc/pbmtoptx.html>.
- Convert a PBM image into a PTX file:
`pbmtoptx {{path/to/image.pbm}} > {{path/to/output.ptx}}`

12
pages/common/pbmupc.md Normal file
View File

@ -0,0 +1,12 @@
# pbmupc
> Generate a PBM image of a Universal Product Code (UPC).
> More information: <https://netpbm.sourceforge.net/doc/pbmupc.html>.
- Generate a UPC image for the specified product type, manufacturer code, and product code:
`pbmupc {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}`
- Use an alternative style that does not display the checksum:
`pbmupc -s2 {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}`

View File

@ -0,0 +1,13 @@
# pgmenhance
> Edge-enhance a PGM image.
> See also: `pamedge`.
> More information: <https://netpbm.sourceforge.net/doc/pgmenhance.html>.
- Edge-enhance a PGM image:
`pgmenhance {{path/to/image.pgm}} > {{path/to/output.pgm}}`
- Specify the level of enhancement:
`pgmenhance -{{1..9}} {{path/to/image.pgm}} > {{path/to/output.pgm}}`