aboutsummaryrefslogtreecommitdiffstats
path: root/src/exiv2wrapper_python.cpp
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-03-16 19:51:59 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-03-16 19:51:59 +0100
commitcf80099581568c17a49160b594ee17e690e64d5c (patch)
tree94c94704c8dcd43cb84ae441993a6b1eb4da8757 /src/exiv2wrapper_python.cpp
parentbf16b218062b0279fab4e4a7e8ee4d0108bed17a (diff)
downloadpyexiv2-cf80099581568c17a49160b594ee17e690e64d5c.tar.gz
Instantiate an image from a data buffer.
Diffstat (limited to 'src/exiv2wrapper_python.cpp')
-rw-r--r--src/exiv2wrapper_python.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exiv2wrapper_python.cpp b/src/exiv2wrapper_python.cpp
index 4cdd34b..aab2925 100644
--- a/src/exiv2wrapper_python.cpp
+++ b/src/exiv2wrapper_python.cpp
@@ -118,6 +118,7 @@ BOOST_PYTHON_MODULE(libexiv2python)
;
class_<Image>("_Image", init<std::string>())
+ .def(init<std::string, long>())
.def("_readMetadata", &Image::readMetadata)
.def("_writeMetadata", &Image::writeMetadata)