How to save image metadata in PNG files using Python? or Best way to save image metadata to PNG with

18 Replies, 1702 Views

Honestly, if you’re *just* storing basic text, `tEXt` chunks are the way.

`Pillow` can do it, but `imageio` + `meta` param is cleaner IMO.

```python
import imageio
imageio.imwrite("file.png", data, meta={"author": "me"})
```

Less headache, same result.

Messages In This Thread



Users browsing this thread: 1 Guest(s)