PNGINSPECT(1p)

πŸ’… PNGINSPECT(1p) β€” the pnginspect era πŸ’…

okay so bestie, gather round, because this is a User Contributed Perl Documentation page and it's about to spill every single PNG detail. no gatekeeping here 🫢


✨ NAME ✨

pnginspect β€” print contents of PNG files. that's the whole job. she looks inside your PNG and tells you everything. iconic behavior, honestly πŸ‘‘


🌸 SYNOPSIS 🌸

pnginspect a.png b.png c.png

yep, that's it. multiple files, one command, no drama πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

So what she actually does: she prints a text representation of the data inside a PNG image file, straight to standard output. Here's the whole glow-up sequence:

  1. She reads the PNG file πŸ“–
  2. She prints out its header information and its valid chunks
  3. Then she attempts to read all the chunks

Most of the chunks get printed using Data::Dumper β€” love that for them. But the modification time and the text segments? Those get printed specially, because they're main characters and they know it ✨

lowkey important: the image data is not currently printed out. so don't come for her about the pixels, she's simply not doing that rn πŸ™ˆ

πŸ’« examining PNGs on the web πŸ’«

If you've got Data::Validate::URI and LWP::Simple installed, you can also use her to peep PNG files out on the internet. like this:

pnginspect http://libpng.org/pub/png/img_png/libpng-88x31.png

ngl that's kind of a slay? 🌐

⚠️ but listen: these modules are not installed automatically by Image::PNG::Libpng. so if you wanna use this facility, bestie, you gotta install them yourself. no cap. 🫢

πŸŽ€ OPTIONS πŸŽ€

  • --verbose β€” print verbose information for debugging. when you need her to be extra loud and tell you every little thing πŸ”

🌈 SEE ALSO 🌈

  • Image::PNG::Libpng β€” her ride-or-die, the whole reason she exists πŸ«‚

πŸ‘‘ AUTHOR πŸ‘‘

Ben Bullock <bkb@cpan.org> β€” the legend who made her, we stan πŸ’œ


and that's the page, babes. she's giving small tool, big energy, zero pixel output and a whole lot of chunks. go inspect something. periodt. πŸ’…βœ¨

mwah πŸ’‹ β€” this was perl v5.42.3, dated 2026-08-19, and she's still out here printing PNG guts like the queen she is πŸŒΈπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from