pamtoqoi, pbmtozinc, ppmtoarbtxt, qoitopam, rawtopgm, rawtoppm: add pages (#11401)

pull/23/head
Juri Dispan 2023-11-07 14:13:33 +01:00 committed by GitHub
parent 638de4ce19
commit 1e6b225a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 100 additions and 0 deletions

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

@ -0,0 +1,8 @@
# pamtoqoi
> Convert a Netpbm image to a QOI image (Quite OK Image format).
> More information: <https://netpbm.sourceforge.net/doc/pamtoqoi.html>.
- Convert a Netpbm image to the QOI format:
`pamtoqoi {{path/to/image.pnm}} > {{path/to/output.qoi}}`

View File

@ -0,0 +1,8 @@
# pbmtozinc
> Convert a PBM image to a Zinc bitmap as used by the Zinc Interface Library Version 1.0.
> More information: <https://netpbm.sourceforge.net/doc/pbmtozinc.html>.
- Convert a PBM image to a Zinc bitmap:
`pbmtozinc {{path/to/image.pbm}} > {{path/to/output.zinc}}`

View File

@ -0,0 +1,20 @@
# ppmtoarbtxt
> Convert a PPM image to an arbitrary text format according to a template.
> More information: <https://netpbm.sourceforge.net/doc/ppmtoarbtxt.html>.
- Convert a PPM image to text as specified by the given template:
`ppmtoarbtxt {{path/to/template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}`
- Convert a PPM image to text as specified by the given template, prepend the contents of the specified head template:
`ppmtoarbtxt {{path/to/template}} -hd {{path/to/head_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}`
- Convert a PPM image to text as specified by the given template, append the contents of the specified tail template:
`ppmtoarbtxt {{path/to/template}} -hd {{path/to/tail_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}`
- Display version:
`ppmtoarbtxt -version`

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

@ -0,0 +1,8 @@
# qoitopam
> Convert a QOI image (Quite OK Image format) to Netpbm.
> More information: <https://netpbm.sourceforge.net/doc/qoitopam.html>.
- Convert a QOI image to Netpbm:
`qoitopam {{path/to/image.qoi}} > {{path/to/output.pnm}}`

32
pages/common/rawtopgm.md Normal file
View File

@ -0,0 +1,32 @@
# rawtopgm
> Convert a raw greyscale image to a PGM image.
> More information: <https://netpbm.sourceforge.net/doc/rawtopgm.html>.
- Convert a raw greyscale image to a PGM image:
`rawtopgm {{width}} {{height}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Convert a raw greyscale image to a PGM image, assume the image to be a square:
`rawtopgm {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Convert a raw greyscale image in which the pixels come bottom-first instead of top-first to a PGM image:
`rawtopgm {{width}} {{height}} -bottomfirst {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Ignore the first n bytes of the specified file:
`rawtopgm {{width}} {{height}} -headerskip {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Ignore the last m bytes of each row in the specified file:
`rawtopgm {{width}} {{height}} -rowskip {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Specify the maxval for the grey values in the input to be equal to N:
`rawtopgm {{width}} {{height}} -maxval {{N}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
- Specify the number of bytes that represent each sample in the input and that the byte-sequence is to be interpreted as little-endian:
`rawtopgm {{width}} {{height}} -bpp {{1|2}} -littleendian {{path/to/image.raw}} > {{path/to/output.pgm}}`

24
pages/common/rawtoppm.md Normal file
View File

@ -0,0 +1,24 @@
# rawtoppm
> Convert a raw RGB stream to a PPM image.
> More information: <https://netpbm.sourceforge.net/doc/rawtoppm.html>.
- Convert a raw RGB stream to a PPM image:
`rawtoppm {{width}} {{height}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
- Convert a raw RGB stream in which the pixels come bottom-first instead of top-first to a PPM image:
`rawtoppm {{width}} {{height}} {{path/to/image.raw}} | pamflip -tb > {{path/to/output.ppm}}`
- Ignore the first n bytes of the specified file:
`rawtoppm {{width}} {{height}} -headerskip {{n}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
- Ignore the last m bytes of each row in the specified file:
`rawtoppm {{width}} {{height}} -rowskip {{m}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
- Specify the order of color components for each pixel:
`rawtoppm {{width}} {{height}} -{{rgb|rbg|grb|gbr|brg|bgr}} {{path/to/image.raw}} > {{path/to/output.ppm}}`