commands.sh

pamtopng

all

Convert a PAM image to PNG. See also: `pnmtopng`, `pngtopam`.

More info →

Options (3)

-tboolean

Mark the specified color as transparent in the output image

Example: pamtopng {{[-t|-transparent]}} {{color}} {{path/to/image.pam}} > {{path/to/output.png}}
boolean

Include the text in the specified file as tEXt chunks in the output

Example: pamtopng {{[-te|-text]}} {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}
boolean

Cause the output file to be interlaced in Adam7 format

Example: pamtopng {{[-in|-interlace]}} {{path/to/image.pam}} > {{path/to/output.png}}

Examples (4)

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 [-t|-transparent] color path/to/image.pam > path/to/output.png

Include the text in the specified file as tEXt chunks in the output

pamtopng [-te|-text] path/to/file.txt path/to/image.pam > path/to/output.png

Cause the output file to be interlaced in Adam7 format

pamtopng [-in|-interlace] path/to/image.pam > path/to/output.png
made by @shridhargupta | data from tldr-pages