[b]"How to save image metadata in PNG files using Python?"[/b] or [b]"Best way to save image metadata to PNG with

18 Replies, 1450 Views

"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.)

Messages In This Thread
[b]"How to save image metadata in PNG files using Python?"[/b] or [b]"Best way to save image metadata to PNG with - by - 08-11-2024, 08:40 PM



Users browsing this thread: 1 Guest(s)