pngtopam
Convert a PNG image to a Netpbm image. tldr-pages
On several platforms
Several platforms
Convert the specified PNG image to a Netpbm image
pngtopam path/to/image.png >path/to/output.pamIdentifyCreate 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.pamIdentifyReplace transparent pixels by the specified color
pngtopam -mix -background color path/to/image.png >path/to/output.pamIdentifyWrite 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.pamIdentify