I linked a branch (lp:~osomon/pyexiv2/from_buffer) that implements instantiating an ImageMetadata from a buffer, and exposing the image data as a buffer. This also allows to easily instantiate an ImageMetadata from a file-like object, using the following syntax:
m = ImageMetadata.from_buffer(f.read())
@Mark and others, your feedback and comments on this approach are welcome, if it suits your needs I'll merge it.
I linked a branch (lp:~osomon/pyexiv2/from_buffer) that implements instantiating an ImageMetadata from a buffer, and exposing the image data as a buffer. This also allows to easily instantiate an ImageMetadata from a file-like object, using the following syntax:
m = ImageMetadata. from_buffer( f.read( ))
@Mark and others, your feedback and comments on this approach are welcome, if it suits your needs I'll merge it.