mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
pamrgbatopng, pamtopng, pngtopam: add pages (#12399)
This commit is contained in:
parent
a1c697bb1b
commit
c02696d5c7
3 changed files with 50 additions and 0 deletions
8
pages/common/pamrgbatopng.md
Normal file
8
pages/common/pamrgbatopng.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# pamrgbatopng
|
||||
|
||||
> This command is superseded by `pamtopng`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamrgbatopng.html>.
|
||||
|
||||
- View documentation for the current command:
|
||||
|
||||
`tldr pamtopng`
|
21
pages/common/pamtopng.md
Normal file
21
pages/common/pamtopng.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# pamtopng
|
||||
|
||||
> Convert a PAM image to PNG.
|
||||
> See also: `pnmtopng`, `pngtopam`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamtopng.html>.
|
||||
|
||||
- Convert the specified PAM image to PNG:
|
||||
|
||||
`pamtopng {{path/to/image.pam}} > {{path/to/output.png}}`
|
||||
|
||||
- Mark the specified color as transparent in the output image:
|
||||
|
||||
`pamtopng -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.png}}`
|
||||
|
||||
- Include the text in the specified file as tEXt chunks in the output:
|
||||
|
||||
`pamtopng -text {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}`
|
||||
|
||||
- Cause the output file to be interlaced in Adam7 format:
|
||||
|
||||
`pamtopng -interlace {{path/to/image.pam}} > {{path/to/output.png}}`
|
21
pages/common/pngtopam.md
Normal file
21
pages/common/pngtopam.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# pngtopam
|
||||
|
||||
> Convert a PNG image to a Netpbm image.
|
||||
> See also: `pamtopng`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pngtopam.html>.
|
||||
|
||||
- Convert the specified PNG image to a Netpbm image:
|
||||
|
||||
`pngtopam {{path/to/image.png}} > {{path/to/output.pam}}`
|
||||
|
||||
- Create an output image that includes both the main image and transparency mask of the input image:
|
||||
|
||||
`pngtopam -alphapam {{path/to/image.png}} > {{path/to/output.pam}}`
|
||||
|
||||
- Replace transparent pixels by the specified color:
|
||||
|
||||
`pngtopam -mix -background {{color}} {{path/to/image.png}} > {{path/to/output.pam}}`
|
||||
|
||||
- Write tEXt chunks found in the input image to the specified text file:
|
||||
|
||||
`pngtopam -text {{path/to/file.txt}} {{path/to/image.png}} > {{path/to/output.pam}}`
|
Loading…
Add table
Reference in a new issue