mirror of https://github.com/CrimsonTome/tldr.git
pamrgbatopng, pamtopng, pngtopam: add pages (#12399)
parent
a1c697bb1b
commit
c02696d5c7
|
@ -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`
|
|
@ -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}}`
|
|
@ -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…
Reference in New Issue