Skip to content

A python3 script to edit 'tEXt' and 'zTXt' of PNG files.

License

Notifications You must be signed in to change notification settings

tam9life/png_metadata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

png_metadata.py

png_metadata.py is implemented using Pillow


Supported features

  • 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.

Requirements


Limitations

  • 'iTXt' editing and function to insert special cid chunk are not provided.

Why did i make this?

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.

About

A python3 script to edit 'tEXt' and 'zTXt' of PNG files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%