Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: add/update XMP and IPTC metadata #4143

Open
woss opened this issue Jul 1, 2024 · 2 comments
Open

Enhancement: add/update XMP and IPTC metadata #4143

woss opened this issue Jul 1, 2024 · 2 comments

Comments

@woss
Copy link

woss commented Jul 1, 2024

Question about an existing feature

I saw that there are a lot of functions that help with changing metadata, I've also checked the tests but what I am interested is in https://github.dev/lovell/sharp/blob/eab7dc1b4942038fd824747c10b4b9eda60ca72e/src/metadata.cc#L119 and https://github.dev/lovell/sharp/blob/eab7dc1b4942038fd824747c10b4b9eda60ca72e/src/metadata.cc#L111

For example, I need to write the xmp:plus:DataMining tag as well as other IPTC tags like the WebstatementURL. How do I write these tags? Which IFD do they belong to?

I also checked the libvips docs and found that this https://www.libvips.org/API/current/libvips-header.html#vips-image-set is used to write the data based on these parts https://www.libvips.org/API/current/libvips-header.html#VIPS_META_XMP_NAME.

Currently, I use the Exiftool to write and share to process, which is quite slow for many images.

XMP:PLUS tags as described here https://exiftool.org/TagNames/PLUS.html#XMP

I would really like to understand how this can be done in sharp directly.

Thank you for the time reading and hopefully answering.

@woss woss added the question label Jul 1, 2024
@lovell lovell changed the title Clarify how to write XMP and IPTC c Enhancement: add/update XMP and IPTC metadata Jul 1, 2024
@lovell
Copy link
Owner

lovell commented Jul 1, 2024

This is a future possible enhancement, which was previously hinted at in #650 (comment)

@woss
Copy link
Author

woss commented Jul 1, 2024

oh, right, i remember reading this at some point. thanks for the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants