aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2/metadata.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pyexiv2/metadata.py b/src/pyexiv2/metadata.py
index f337554..fc36568 100644
--- a/src/pyexiv2/metadata.py
+++ b/src/pyexiv2/metadata.py
@@ -69,15 +69,15 @@ class ImageMetadata(object):
return libexiv2python._Image(filename)
@classmethod
- def from_buffer(cls, data):
+ def from_buffer(cls, buffer):
"""
- Instantiate an image container from a data buffer.
+ Instantiate an image container from an image buffer.
- :param data: a buffer containing image data
- :type data: string
+ :param buffer: a buffer containing image data
+ :type buffer: string
"""
obj = cls(None)
- obj._image = libexiv2python._Image(data, len(data))
+ obj._image = libexiv2python._Image(buffer, len(buffer))
return obj
def read(self):
@@ -390,9 +390,9 @@ class ImageMetadata(object):
@property
def buffer(self):
"""
- The image data as a string.
- If metadata has been modified, the data buffer won't be up-to-date until
- write() has been called.
+ The image buffer as a string.
+ If metadata has been modified, the data won't be up-to-date until
+ :meth:`.write` has been called.
"""
return self._image._getDataBuffer()