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.
11 lines
253 B
Bash
Executable File
11 lines
253 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
my_python="$(command -v python3 || command -v python)" || {
|
|
echo >&2 "error: program not found: Python interpreter"
|
|
exit 127
|
|
}
|
|
my_python_flags="-BES"
|
|
|
|
exec "$my_python" "$my_python_flags" "$(dirname "$0")/pngexifinfo.py" "$@"
|