Image::ExifTool::WritePNG(3) User Contributed Perl Documentation Image::ExifTool::WritePNG(3)

# [NAME](#NAME)

Image::ExifTool::WritePNG.pl - Write PNG meta information

# [SYNOPSIS](#SYNOPSIS)

These routines are autoloaded by Image::ExifTool::PNG.

# [DESCRIPTION](#DESCRIPTION)

This file contains routines to write PNG metadata.

# [NOTES](#NOTES)

Compress::Zlib is required to write compressed text.

Existing text tags are always rewritten in their original form (compressed zTXt, uncompressed tEXt or international iTXt), so pre-existing compressed information can only be modified if Compress::Zlib is available.

Newly created textual information is written in uncompressed tEXt form by default, or as compressed zTXt if the Compress option is used and Compress::Zlib is available (but only if the resulting compressed data is smaller than the original text, which isn't always the case for short text strings).

# [AUTHOR](#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](#SEE_ALSO)

[**Image::ExifTool::PNG**(3pm)](/man/os/exiftool/Image::ExifTool::PNG.3pm), [**Image::ExifTool**(3pm)](/man/os/exiftool/Image::ExifTool.3pm)

2026-07-15 perl v5.42.2

---

Document: Image::ExifTool::WritePNG(3pm) from exiftool 13.59-r2 (Chainguard OS)
Source: https://github.com/exiftool/exiftool
