Image::...WritePNG(3)

πŸ¦‹ Image::...WritePNG(3) πŸ¦‹

okay so this is the User Contributed Perl Documentation page for Image::...WritePNG(3), and bestie, we're about to make PNG metadata make Senseβ„’ πŸ’–


✨ NAME ✨

Image::ExifTool::WritePNG.pl β€” literally the file that writes PNG meta information πŸŽ€


🌸 SYNOPSIS 🌸

so here's the vibe: these routines are not something you call yourself, okay? They get autoloaded by Image::ExifTool::PNG. That's it, that's the whole synopsis, the module handles the handshake for you πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

This file is where the routines that write PNG metadata live. That's the whole job. She writes, she slays, she goes home 🫢


πŸ”₯ NOTES πŸ”₯

okay listen up because this part actually matters, no cap:

  • Compress::Zlib is required to write compressed text. Not optional. Needed. Periodt.
  • Existing text tags are always rewritten in their original form β€” so that's compressed zTXt, uncompressed tEXt, or international iTXt, whichever one it already was, no switching up on it. Which means: pre-existing compressed information can only be modified if Compress::Zlib is available. If you don't have it, those compressed tags are staying exactly how they are 😭
  • Newly created textual information gets written in uncompressed tEXt form by default. Or you can get compressed zTXt instead if you use the Compress option and Compress::Zlib is available β€” but heads up, it only actually compresses if the resulting compressed data ends up smaller than the original text. And fr fr, that is not always the case for short text strings. Short strings stay chunky, that's just physics πŸ’€
ngl, the whole compression situation is giving "it depends" and we respect her for being honest about it 🌈

πŸ‘‘ AUTHOR πŸ‘‘

Copyright 2003-2026, Phil Harvey (philharvey66 at gmail.com) πŸ’–

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


🌟 SEE ALSO 🌟

go read those too bestie, they're iconic ⭐


and that's the whole page!! this is perl v5.42.1, dated 2026-03-31, coming at you straight from Image::...WritePNG(3) β€” mwah, take care of your PNGs πŸ’…βœ¨

πŸ“¦ where this page comes from