PNGCP(1)
π PNGCP(1) π
okay bestie, welcome to pngcp from the pngtools collection β it's the lil glow-up tool that makes you a brand new PNG file with a whole new set of attributes. β¨
πΈ NAME πΈ
pngcp β create a new PNG file, having changed some attributes π¦
β¨ SYNOPSIS β¨
pngcp [-d <depth>] [-s <samples per pixel>] <input filename> <output filename>
π DESCRIPTION π
so here's the vibe: pngcp makes a new PNG file, and it does that by grabbing the image data straight out of your input file and repackaging it. π
the output file gets the bitdepth and the number of samples per pixel that you told it on the command line. main character transformation energy, no cap.
but babes, listen β the PNG spec has limits on what counts as a valid combination of those two things. like, not every combo is allowed. π and pngcp will literally tell you when you've handed it an invalid combination, so it's not gonna just quietly do something cursed.
π«Ά real talk though: samples with more than eight bits are not correctly handled at the moment. that's just how it is right now. not me pretending otherwise.
π§ RETURNS π§
Nothing. zero. zilch. it just does the thing. π€·ββοΈ
π EXAMPLE π
pngcp toucan.png new.png
toucan pic goes in, toucan pic comes out. iconic. π¦π
π SEE ALSO π
β VERSION β
This documentation is for pngtools 1.0.
π AUTHOR π
pngtools was written by Michael Still and is released under the GNU GPL. The project is hosted at https://github.com/mikalstill/pngtools.
π BUGS π
Please report bugs at https://github.com/mikalstill/pngtools/issues.
and that's the whole page, bestie!! π this lil writeup is part of the User Commands manual, and it's dated 10 June 2026 β go forth and convert your pixels, you absolute legend π πΈβ¨
π¦ where this page comes from
- ubuntu stonking: pngtools 1.2-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms