mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
pbmtox10bm, pbmtoxbm, ppmtoxpm, xbmtopbm, ximtoppm, xpmtoppm: add pages (#11407)
This commit is contained in:
parent
c249538169
commit
502ca6e70f
6 changed files with 72 additions and 0 deletions
8
pages/common/pbmtox10bm.md
Normal file
8
pages/common/pbmtox10bm.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# pbmtox10bm
|
||||
|
||||
> This command is superseded by `pbmtoxbm -x10`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pbmtox10bm.html>.
|
||||
|
||||
- View documentation for the current command:
|
||||
|
||||
`tldr pbmtoxbm`
|
12
pages/common/pbmtoxbm.md
Normal file
12
pages/common/pbmtoxbm.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# pbmtoxbm
|
||||
|
||||
> Convert a PBM image to a X11 or X10 bitmap.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pbmtoxbm.html>.
|
||||
|
||||
- Convert a PPM image to a X11 XBM file:
|
||||
|
||||
`pbmtoxbm {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}`
|
||||
|
||||
- Explicitly specify whether an X11 or X10 bitmap should be generated:
|
||||
|
||||
`pbmtoxbm -{{x11|x10}} {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}`
|
20
pages/common/ppmtoxpm.md
Normal file
20
pages/common/ppmtoxpm.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ppmtoxpm
|
||||
|
||||
> Convert a PPM image to an X11 version 3 pixmap.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoxpm.html>.
|
||||
|
||||
- Convert a PPM image to a XPM image:
|
||||
|
||||
`ppmtoxpm {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
|
||||
|
||||
- Specify the prefix string in the output XPM image:
|
||||
|
||||
`ppmtoxpm -name {{prefix_string}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
|
||||
|
||||
- In the output XPM file, specify colors by their hexadecimal code instead of their name:
|
||||
|
||||
`ppmtoxpm -hexonly {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
|
||||
|
||||
- Use the specified PGM file as a transparency mask:
|
||||
|
||||
`ppmtoxpm -alphamask {{path/to/alpha_file.pgm}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
|
8
pages/common/xbmtopbm.md
Normal file
8
pages/common/xbmtopbm.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# xbmtopbm
|
||||
|
||||
> Convert an X11 or X10 bitmap to a PBM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/xbmtopbm.html>.
|
||||
|
||||
- Convert an XBM image to a PPM image:
|
||||
|
||||
`xbmtopbm {{path/to/input_file.xbm}} > {{path/to/output_file.pbm}}`
|
12
pages/common/ximtoppm.md
Normal file
12
pages/common/ximtoppm.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# ximtoppm
|
||||
|
||||
> Convert a XIM file to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ximtoppm.html>.
|
||||
|
||||
- Convert an XIM image to a PPM image:
|
||||
|
||||
`ximtoppm {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`
|
||||
|
||||
- Store the transparency mask of the input image in the specified file:
|
||||
|
||||
`ximtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`
|
12
pages/common/xpmtoppm.md
Normal file
12
pages/common/xpmtoppm.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# xpmtoppm
|
||||
|
||||
> Convert an X11 pixmap to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/xpmtoppm.html>.
|
||||
|
||||
- Convert an XPM image to a PPM image:
|
||||
|
||||
`xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`
|
||||
|
||||
- Store the transparency mask of the input image in the specified file:
|
||||
|
||||
`xpmtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`
|
Loading…
Add table
Reference in a new issue