diff --git a/pages/common/pamrgbatopng.md b/pages/common/pamrgbatopng.md new file mode 100644 index 000000000..8f6cfda3c --- /dev/null +++ b/pages/common/pamrgbatopng.md @@ -0,0 +1,8 @@ +# pamrgbatopng + +> This command is superseded by `pamtopng`. +> More information: . + +- View documentation for the current command: + +`tldr pamtopng` diff --git a/pages/common/pamtopng.md b/pages/common/pamtopng.md new file mode 100644 index 000000000..0214f4312 --- /dev/null +++ b/pages/common/pamtopng.md @@ -0,0 +1,21 @@ +# pamtopng + +> Convert a PAM image to PNG. +> See also: `pnmtopng`, `pngtopam`. +> More information: . + +- 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}}` diff --git a/pages/common/pngtopam.md b/pages/common/pngtopam.md new file mode 100644 index 000000000..7ff269dd8 --- /dev/null +++ b/pages/common/pngtopam.md @@ -0,0 +1,21 @@ +# pngtopam + +> Convert a PNG image to a Netpbm image. +> See also: `pamtopng`. +> More information: . + +- 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}}`