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

Adding EXIF / Metadata to images #68

Open
tomjerbo opened this issue Sep 10, 2024 · 2 comments
Open

Adding EXIF / Metadata to images #68

tomjerbo opened this issue Sep 10, 2024 · 2 comments

Comments

@tomjerbo
Copy link

tomjerbo commented Sep 10, 2024

Hi!
First off, this package is awesome!

I'm a noob at this and I'm trying to add a custom string with my own data onto the images before saving them to disc and I couldn't find any methods that allows me to do that. In the WebPPicture struct there is fields for extra_info_type and extra_info that I'm guessing might be used for metadata?

If it's not already a thing and I've just missed it, would adding metadata functionality be a possibility?

@netpyoung
Copy link
Owner

that will be good feature easy to getting metadata .
actually there is API example written in C++
It should be rewritten in dotnet also to support in unity.webp.

@tomjerbo
Copy link
Author

I don't know C++ and reading the api there's examples of extracting the metadata, will it be possible to write it as well using the demuxer?

If it's something you're planning to add support for, for my use case, being able to write metadata onto the byte[] that you get returned from Texture2D.EncodeToWebP or being able to send the metadata in as an argument for the method would be optimal.

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

No branches or pull requests

2 participants