picttoppm, pnmtops, ppmtopict, ppmtopuzz, ppmtosixel, psidtopgm, pstopnm, qrttoppm: add pages (#11413)

pull/23/head
Juri Dispan 2023-11-09 10:30:02 +01:00 committed by GitHub
parent e099ecd04e
commit 22f009639f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 100 additions and 0 deletions

16
pages/common/picttoppm.md Normal file
View File

@ -0,0 +1,16 @@
# picttoppm
> Convert a Macintosh PICT file to a PPM image.
> More information: <https://netpbm.sourceforge.net/doc/picttoppm.html>.
- Convert a PICT file to a PPM image:
`picttoppm {{path/to/file.pict}} > {{path/to/file.ppm}}`
- Force any images in the PICT file to be output at full resolution:
`picttoppm -fullres {{path/to/file.pict}} > {{path/to/file.ppm}}`
- Do not assume that the input file contains a PICT header and execute quickdraw operations only:
`picttoppm -noheader -quickdraw {{path/to/file.pict}} > {{path/to/file.ppm}}`

16
pages/common/pnmtops.md Normal file
View File

@ -0,0 +1,16 @@
# pnmtops
> Convert a PNM image to a PostScript file.
> More information: <https://netpbm.sourceforge.net/doc/pnmtops.html>.
- Convert a PNM image to a PS file:
`pnmtops {{path/to/file.pnm}} > {{path/to/file.ps}}`
- Specify the dimensions of the output image in inches:
`pnmtops -imagewidth {{imagewidth}} -imageheight {{imageheight}} {{path/to/file.pnm}} > {{path/to/file.ps}}`
- Specify the dimensions of the page the output image resides on in inches:
`pnmtops -width {{width}} -height {{height}} {{path/to/file.pnm}} > {{path/to/file.ps}}`

View File

@ -0,0 +1,8 @@
# ppmtopict
> Convert a PPM image to a Macintosh PICT file.
> More information: <https://netpbm.sourceforge.net/doc/ppmtopict.html>.
- Convert a PPM image to a PICT file:
`ppmtopict {{path/to/file.ppm}} > {{path/to/file.pict}}`

View File

@ -0,0 +1,8 @@
# ppmtopuzz
> Convert a PPM image to an X11 puzzle file.
> More information: <https://netpbm.sourceforge.net/doc/ppmtopuzz.html>.
- Convert a PPM image to an X11 puzzle file:
`ppmtopuzz {{path/to/file.ppm}} > {{path/to/file.puzz}}`

View File

@ -0,0 +1,20 @@
# ppmtosixel
> Convert a PPM image to DEC sixel format.
> More information: <https://netpbm.sourceforge.net/doc/ppmtosixel.html>.
- Convert a PPM image to DEC sixel format:
`ppmtosixel {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Produce an uncompressed SIXEL file that is much slower to print:
`ppmtosixel -raw {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Add a left margin of 1.5 inches:
`ppmtosixel -margin {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Encode control codes in a more portable (although less space-efficient) way:
`ppmtosixel -7bit {{path/to/file.ppm}} > {{path/to/file.sixel}}`

View File

@ -0,0 +1,8 @@
# psidtopgm
> Convert PostScript image data to a PGM image.
> More information: <https://netpbm.sourceforge.net/doc/psidtopgm.html>.
- Convert the image data in a PS file to a PGM image of the specified dimensions and quality:
`psidtopgm {{width}} {{height}} {{bits_per_sample}} {{path/to/file.ps}} > {{path/to/image.pgm}}`

16
pages/common/pstopnm.md Normal file
View File

@ -0,0 +1,16 @@
# pstopnm
> Convert a PostScript file to a PNM image.
> More information: <https://netpbm.sourceforge.net/doc/pstopnm.html>.
- Convert a PS file to PNM images, storing page N of the input to `path/to/fileN.ppm`:
`pstopnm {{path/to/file.ps}}`
- Explicitly specify the output format:
`pstopnm -{{pbm|pgm|ppm}} {{path/to/file.ps}}`
- Specify the resolution of the output in dots per inch:
`pstopnm -dpi {{n}} {{path/to/file.ps}}`

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

@ -0,0 +1,8 @@
# qrttoppm
> Convert a QRT ray tracer file to a PPM image.
> More information: <https://netpbm.sourceforge.net/doc/qrttoppm.html>.
- Convert a QRT file to a PPM image:
`qrttoppm {{path/to/file.qrt}} > {{path/to/image.ppm}}`