png_metadata.py is implemented using Pillow
-
Support for reading/writing 'tEXt' and 'zTXt' chunks of PNG files.
-
Support command line interface.
- Support import png_metadata in Python.
- add_metadata, remove_metadata, clear_metadata, print_metadata functions are provided.
- It can be used if the import path matches properly.
- 'iTXt' editing and function to insert special cid chunk are not provided.
- If you need that function, you can implement it through PIL.PngImagePlugin.PngInfo
Using 'ExifTool' is very difficult. Putting the 'tEXt' chunks of PNG directly into ExifTool requires very specialized knowledge and tool skills.
I couldn't find a way to properly edit 'tEXt' even in a graphics tool like GIMP.
In the end, I found it easy to programmatically insert the 'tEXt' value into the PNG using the python3 + Pillow combination.