可以显示文本块元数据的 PNG 查看器

Rol*_*lle 7 software-rec images

是否有可以显示文本块元数据的 PNG 查看器?理想情况下,我想要一种查看任意块的方法。

Rol*_*lle 5

找到了部分解决方案,pngcheck工具可以打印文本块,但它不会显示图像。

pngcheck -c -v -t foobar.png
Run Code Online (Sandbox Code Playgroud)

这些是显示 PNG 块的相关选项:

-7  print contents of tEXt chunks, escape chars >=128 (for 7-bit terminals)
-c  colorize output (for ANSI terminals)
-p  print contents of PLTE, tRNS, hIST, sPLT and PPLT (can be used with -q)
-t  print contents of tEXt chunks (can be used with -q)
-v  test verbosely (print most chunk data)
Run Code Online (Sandbox Code Playgroud)