pamrgbatopng, pamtopng, pngtopam: add pages (#12399)

pull/23/head
Juri Dispan 2024-03-04 04:57:54 +01:00 committed by GitHub
parent a1c697bb1b
commit c02696d5c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 50 additions and 0 deletions

View 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
View 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
View 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}}`