LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pngcheck

Verify PNG file integrity and structure

TLDR

Check PNG file for integrity
$ pngcheck [image.png]
copy
Verbose output (per-chunk details)
$ pngcheck -v [image.png]
copy
Check multiple files
$ pngcheck [*.png]
copy
Colorized output
$ pngcheck -c [image.png]
copy
Print text chunks (titles, comments, etc.)
$ pngcheck -t [image.png]
copy
Quiet mode - only show errors
$ pngcheck -q [image.png]
copy
Search for embedded PNGs in a file
$ pngcheck -s [file]
copy

SYNOPSIS

pngcheck [-cfpqstvx7] file...

DESCRIPTION

pngcheck verifies the integrity and structure of PNG, JNG, and MNG image files. It validates CRC checksums, checks chunk ordering, and reports structural errors or corruption.In verbose mode it lists each chunk with dimensions, color type, bit depth, compression method, and filter type. With -t it prints embedded text metadata (tEXt, zTXt, iTXt). With -s it can locate PNG/MNG images embedded in other files, and -x can extract them.

PARAMETERS

FILE

PNG, JNG, or MNG file(s) to check.
-v
Verbose mode; show details of each chunk.
-c
Colorize text output.
-f
Force continuation after major errors.
-p
Print contents of PLTE, tRNS, hIST, sPLT, and PPLT chunks.
-q
Quiet mode; only show errors and warnings.
-s
Search for sub-images (embedded PNGs/MNGs) in a file.
-t
Print contents of tEXt, zTXt, and iTXt text chunks.
-x
Search for and extract sub-images (use with -s).
-7
Print tEXt chunks in 7-bit clean ASCII (escape high bytes).
--help
Display help.

INSTALL

sudo apt install pngcheck
copy
sudo dnf install pngcheck
copy
sudo zypper install pngcheck
copy
brew install pngcheck
copy
nix profile install nixpkgs#pngcheck
copy

CAVEATS

PNG/JNG/MNG formats. Read-only analysis.

HISTORY

pngcheck was created for PNG file validation and inspection.

SEE ALSO

pngcrush(1), optipng(1), file(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid