How can I load a image already in Memory

Asked by Janitha

How can I load image data already in in memory in to pyexiv2.

At the moment the the only available method is to use pyexiv2.Image(filename). Is there a method where I can pass pyexiv2.Image( ) a StringIO or a string that contains the binary image data and extract the EXIF data in it?

Thanks,
J

Question information

Language:
English Edit question
Status:
Answered
For:
pyexiv2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Olivier Tilloy (osomon) said :
#2

In pyexiv2 0.2, the ImageMetadata class has a from_buffer(…) class method that does what you need.
See http://tilloy.net/dev/pyexiv2/api.html#pyexiv2.metadata.ImageMetadata.from_buffer.

Can you help with this problem?

Provide an answer of your own, or ask Janitha for more information if necessary.

To post a message you must log in.