S
S
Sergey Eremin2014-12-18 11:41:33
Python
Sergey Eremin, 2014-12-18 11:41:33

How to set tEXtComment inside PNG file using PYTHON PIL?

In the PNG, GIF, TIFF, JPG and some other file formats, it is possible to add text labels inside the file.
97000224564c4eafbb299b4da342e519.png
cf40aaad9d9c4498a26b4c1c77376bd4.png
In the libraries PIL and PILLOW for Python, functions for working with such labels were not found. There are functions for reading EXIF ​​tags (PIL.ExifTags.TAGS) and info (PIL.image.info). The latter seems to be exactly what you need. But you do not need to read info, but write it down. Has anyone faced such a task?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question