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

Support saving to buffer #47

Open
Ten0 opened this issue Jan 10, 2022 · 4 comments
Open

Support saving to buffer #47

Ten0 opened this issue Jan 10, 2022 · 4 comments
Labels

Comments

@Ten0
Copy link

Ten0 commented Jan 10, 2022

The current bindings only allow to save to a file.
For our use case, we need to parse and remove exif tags in memory, for all kinds of images.
=> We would need to be able to save the resulting images (after removing tags), to a buffer (ideally using Write?).

It looks like this might be possible using https://gitlab.gnome.org/GNOME/gexiv2/-/blob/e4d65b31cd77f28ef248117e161de9d8cc31d712/gexiv2/gexiv2-metadata.cpp#L715 or https://gitlab.gnome.org/GNOME/gexiv2/-/blob/e4d65b31cd77f28ef248117e161de9d8cc31d712/gexiv2/gexiv2-metadata.cpp#L592, but is not currently available through the rust libraries.

@felixc felixc added the feature label Jan 10, 2022
@felixc
Copy link
Owner

felixc commented Jan 10, 2022

That would be fantastically useful! Patches to expose gexiv2_metadata_save_stream (first via gexiv2-sys and then here) would be welcome.

@yzernik
Copy link

yzernik commented Jul 29, 2022

Anyone working on this? I might give it a try if no one else is.

@felixc
Copy link
Owner

felixc commented Jul 29, 2022

Please go for it!

@mexicantexan
Copy link

@felixc @yzernik Would this work? -> felixc/gexiv2-sys#26

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

No branches or pull requests

4 participants