How can I add author or other metadata to a PNG file on Windows?
Asked 3/20/2016
3 views
2 answers
0
On Windows 7, I can edit metadata like author for JPEG files in Explorer, but with PNG files I can only change the shooting time. Why doesn’t Windows let me edit the same properties for PNG files, and what are my options if I want to store author or other metadata with a PNG image?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
12
Edit: This answer is out of date. As of July 2017, PNG supports EXIF chunks. exiftool can edit PNG chunks, but Windows explorer apparently still does not support PNG chunks. See comments by posfan12 and lukeuser below.
TL;DR: PNG doesn't formerly didn't support EXIF metadata (when the question was asked)
While PNG can embed metadata chunks, standard metadata formats such as EXIF, IPTC, or XMP are not supported for PNG. See the following resources:
- Photo.SE: Is “Date Taken” Exif data possible on .PNG file, and is it possible to copy “Date Modified” to “Date Taken”?
- StackOverflow: Does PNG contain EXIF data like JPG?
There are several applications and software libraries that can read and write embedded text chunks, including on Windows:
- Superuser: What software can I use to read png metadata?
- Photo.SE: How do I go about editing the metadata of a PNG file?
"Author" is a reserved keyword for tEXt/zTXt chunks, but PNG readers are not required to respect reserved keywords for those chunks. The Windows built-in shell extension that displays image information does not fully support "Author" keywords in tEXt/zTXt chunks. Even if you embed an "Author" key in the text chunk(s), there's no guarantee a standard Windows user will be able to see it.
Edit: Additionally, multiple chunks can exist, using the same keyword(s) again. From the link to libpng.org above,
Author The name of the author of the image. If the original image were a painting or other nonelectronic medium, both the original artist and the person who scanned the image might be listed.
Thus, the authors of the PNG specification intended a loose, flexible way of embedding all sorts of information. But as implemented in the 1990's, the PNG specification is not sufficient to write robust software that uses, reads, or relies on more metadata than you're seeing.
Also from the same link to libpng.org above, "Unicode UTF-8 character set was one of the items in the design of PNG that was voted down." UTF-8 was not well supported by any of the major system libraries and operating systems at the time. Because the designers of PNG wanted to rely on stable, tested technologies when they authored the PNG specification, they made the reasonable decision to not use it. Thus, the tEXt chunks use the Latin-1 (ISO/IEC 8859-1) character set. The iTXt chunk was eventually added, that uses the Unicode character set, sort of: the keywords in the iTXt chunks are encoded in Latin-1 character set; the values in the chunks are Unicode. This was done so that existing PNG implementations written before the introduction of the iTXt chunk could read the chunk headers and keywords, and skip over text they couldn't parse, read, or render.
Ultimately, because the PNG specification did not enforce more metadata tags than it did, authors of PNG software had no guarantee that tags such as "Author" would be parsed and read by other PNG implementations. The lack of widespread implementation of such tags meant that there wasn't a critical mass of PNG images that had the data, and thus new PNG software and new versions of existing PNG software had no reason to write software for ill-defined tags, and the cycle perpetuates itself. Thus we are in the state we are in today: loose specification of the PNG metadata format (partly driven by no viable way to represent non-Western character data) led to lack of demand for support for tags such as "Author".
Originally by user11924. Source · Licensed CC BY-SA 4.0
user11924
10y ago
0
Generated from our catalog & community — verify before relying on it.
Windows Explorer has limited support for PNG metadata. Unlike JPEG, PNG was not traditionally handled with standard EXIF/IPTC/XMP fields in the same way, so Windows often won’t expose editable properties such as Author for PNG files.
PNG can store metadata in its own chunks, and newer tools can write that metadata, but Windows Explorer still may not read or edit it properly. Practical options are:
- Use software that can edit PNG metadata directly.
- Use a sidecar XMP file to store author, labels, and other metadata alongside the PNG.
- Use asset-management apps such as Adobe Bridge or XnViewMP, which can manage metadata even when Explorer cannot.
So the limitation is mainly with Windows Explorer’s PNG support, not with the idea of metadata itself. If you need editable, portable metadata inside the file, use a metadata-capable tool rather than Explorer; if compatibility matters, a sidecar XMP file is a common workaround.
UniqueBot
AI10y ago
Your Answer
Related Questions
How can I enable RAW and TIFF thumbnails in Windows 7 Explorer?
How can I set a PNG's "Date Taken" from its filename using ExifTool?
Why don’t Windows Explorer “Comments” and “Subject” metadata appear in Lightroom?
How can I edit metadata in a PNG file using free software?
Why do JPEGs get smaller after rating or rotating them in Windows Photo Viewer, and why won't my camera display them properly?