mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
picttoppm, pnmtops, ppmtopict, ppmtopuzz, ppmtosixel, psidtopgm, pstopnm, qrttoppm: add pages (#11413)
This commit is contained in:
parent
e099ecd04e
commit
22f009639f
8 changed files with 100 additions and 0 deletions
16
pages/common/picttoppm.md
Normal file
16
pages/common/picttoppm.md
Normal 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
16
pages/common/pnmtops.md
Normal 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}}`
|
8
pages/common/ppmtopict.md
Normal file
8
pages/common/ppmtopict.md
Normal 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}}`
|
8
pages/common/ppmtopuzz.md
Normal file
8
pages/common/ppmtopuzz.md
Normal 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}}`
|
20
pages/common/ppmtosixel.md
Normal file
20
pages/common/ppmtosixel.md
Normal 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}}`
|
8
pages/common/psidtopgm.md
Normal file
8
pages/common/psidtopgm.md
Normal 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
16
pages/common/pstopnm.md
Normal 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
8
pages/common/qrttoppm.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue