Files
cheatsheet-tldr/tldr/pngcheck
2024-09-10 00:16:06 +00:00

34 lines
853 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pngcheck
> Print detailed information about and verify PNG, JNG, and MNG files.
> More information: <http://www.libpng.org/pub/png/apps/pngcheck.html>.
- Print a summary for an image (width, height, and color depth):
`pngcheck {{path/to/image.png}}`
- Print information for an image with [c]olorized output:
`pngcheck -c {{path/to/image.png}}`
- Print [v]erbose information for an image:
`pngcheck -cvt {{path/to/image.png}}`
- Receive an image from `stdin` and display detailed information:
`cat {{path/to/image.png}} | pngcheck -cvt`
- [s]earch for PNGs within a specific file and display information about them:
`pngcheck -s {{path/to/image.png}}`
- Search for PNGs within another file and e[x]tract them:
`pngcheck -x {{path/to/image.png}}`