rexiv2 icon indicating copy to clipboard operation
rexiv2 copied to clipboard

Support saving to buffer

Open Ten0 opened this issue 3 years ago • 4 comments

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.

Ten0 avatar Jan 10 '22 19:01 Ten0

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

felixc avatar Jan 10 '22 19:01 felixc

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

yzernik avatar Jul 29 '22 19:07 yzernik

Please go for it!

felixc avatar Jul 29 '22 20:07 felixc

@felixc @yzernik Would this work? -> https://github.com/felixc/gexiv2-sys/issues/26

mexicantexan avatar Jan 02 '24 20:01 mexicantexan