mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00

We used this experimental project in the development of the PNG-EXIF ("eXIf") specification, back in 2017. The project evolved together with the draft specification, which was finalized on 2017-Jun-15 and approved by the PNG Group on 2017-Jul-13. The EXIF specification, outside of the scope of PNG and libpng, is quite complex. The libpng implementation cannot grow too much beyond performing basic integrity checks on top of serialization. In order to create and manipulate PNG-EXIF image files, the use of external libraries and tools such as ExifTool is necessary. Now, with the addition of contrib/pngexif to the libpng repository, offline tasks like metadata inspection and linting can be performed without importing external dependencies.
pngexifinfo
Show the EXIF information embedded in a PNG file.
Sample usage
Show the EXIF info inside a PNG file:
pngexifinfo /path/to/file.png
Show the EXIF info inside a raw .exif
file, using base 16 for the EXIF tags:
pngexifinfo --hex /path/to/file.exif
Show the help text:
pngexifinfo --help