LeoHsiao1 / pyexiv2

Read and write image metadata, including EXIF, IPTC, XMP, ICC Profile.
GNU General Public License v3.0
196 stars 39 forks source link

is there a recommended way to iterate over the metadata groups? #92

Closed tester0077 closed 2 years ago

tester0077 commented 2 years ago

I realize hat this pyexiv2 is an extension of libexiv2, but I cannot quite understand if or how I could get the number of entries for a given group for a specific image or, iterate over a specific group and get selected tags other than a hard-code switch statement

LeoHsiao1 commented 2 years ago

This is the metadata that exiv2 could read. When pyexiv2 opens an image, it automatically reads all metadata and returns a dict. It does not support reading only one tag at a time.

tester0077 commented 2 years ago

Thank you. I am very new at python way of doing things, so this gives me a place to start.

On Fri, Feb 18, 2022 at 9:58 PM LeoHsiao @.***> wrote:

This is the metadata https://exiv2.org/metadata.html that exiv2 could read. When pyexiv2 opens an image, it automatically reads all metadata and returns a dict. It does not support reading only one tag at a time.

— Reply to this email directly, view it on GitHub https://github.com/LeoHsiao1/pyexiv2/issues/92#issuecomment-1045841801, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFCLPD4V3FR36IHQQXRNZ3U34WR5ANCNFSM5OZD3SGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

LeoHsiao1 commented 2 years ago

Welcome to the world of Python and enjoy your journey.