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

Hi i am search for adding XMP tags to IPTC is it possible by any means ? #111

Closed faridelya closed 1 year ago

faridelya commented 1 year ago

Hi, Hope you doing well. I have used Exiftool but it adds only predefined tags in each standard of metadata like XMP and IPTC

if both standards share a common tag name then we can also add this but I want to add all xmp tags to iptc and all iptc tag to xmp or we can say custom tag for IPTC or XMP

I also used exic2 c++ n ubuntu command line but I was not able to add this if we can then how if not then why what is the disadvantage of adding a custom tag?

Thanks

LeoHsiao1 commented 1 year ago

Yes, you can write an unlimited number of custom tags.‘ For example:

>>> img.modify_xmp({'Xmp.dc.mytag1': 'Hello'})
>>> img.read_xmp()['Xmp.dc.mytag1']
'Hello'

Please see https://github.com/LeoHsiao1/pyexiv2/blob/master/docs/Tutorial.md#modify

faridelya commented 1 year ago

Hi @LeoHsiao1 thanks for you kind respond the same we can do with IPTC and exif metadata?

i mean custom tag that are not part of predefine tags of any satndard meatada .?

LeoHsiao1 commented 1 year ago

I have tried, exiv2 can only write custom XMP tags, not EXIF or IPTC.