"Best way to save image metadata to PNG with Python?"
Hey folks!
I’ve been messing around with images in Python and need to save some extra info (like author, timestamp, etc.) into a PNG file. I know JPEG has EXIF, but PNG’s a bit different, right?
What’s the easiest method to *python save image metadata png* without losing quality?
I tried PIL/Pillow but couldn’t figure out how to *properly* store custom fields.
Any libs or snippets you’d recommend?
Bonus points if it’s lightweight and doesn’t require 10 dependencies lol.
Thanks in advance!
(Also, if you’ve got horror stories about metadata corruption, I’d love to hear ‘em—might save me some pain.)
Hey folks!
I’ve been messing around with images in Python and need to save some extra info (like author, timestamp, etc.) into a PNG file. I know JPEG has EXIF, but PNG’s a bit different, right?
What’s the easiest method to *python save image metadata png* without losing quality?
I tried PIL/Pillow but couldn’t figure out how to *properly* store custom fields.
Any libs or snippets you’d recommend?
Bonus points if it’s lightweight and doesn’t require 10 dependencies lol.
Thanks in advance!
(Also, if you’ve got horror stories about metadata corruption, I’d love to hear ‘em—might save me some pain.)
