py3exiv2-team team mailing list archive
-
py3exiv2-team team
-
Mailing list archive
-
Message #00003
Issue with tag Exif.Photo.UserComment
Hi there,
First of all, I would like to thanks the pyexiv2 developers who
provided a very valuable library for exposing image metadata for a
while... until python2 actually died.
I have been developing a photo triage/publishing/archiving suite since
2004:
https://github.com/kif/imagizer
Since that migration, I tested gexiv2, which finally does not fit my "comment"
management policy. Probably that Py3Exiv2 better fits my needs.
I have nevertheless an issue with the management of those comments
which I store either in the JPEG-comment section or in the
Exif.Photo.UserComment tag within Exif metadata (for raw images).
This key is supposed to be a binary key with the first 8 bytes
describing the encoding (\x00 padded) followed with the comment properly encoded.
https://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/usercomment.html
This is at least how gexiv2 does it. Apparently pyexiv2 follows a different convention.
I wonder if is possible to retrieve the raw bytes to analyze the
encoding and retrieve the comment of my photos: I have 210k files
recorded over 2 decades and all of them are commented and the encoding
is UTF-8.
Thanks for you attention, Happy holidays season.
Jérôme