← 返回命令列表

Linux command

pngcheck 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check PNG file

pngcheck [image.png]

Verbose

pngcheck -v [image.png]

Check multiple files

pngcheck [*.png]

Colorized

pngcheck -c [image.png]

Print text chunks

pngcheck -t [image.png]

Quiet mode

pngcheck -q [image.png]

Search for embedded PNGs

pngcheck -s [file]

说明

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.

参数

-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.

FAQ

What is the pngcheck command used for?

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.

How do I run a basic pngcheck example?

Run `pngcheck [image.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v do in pngcheck?

Verbose mode; show details of each chunk.