aboutsummaryrefslogtreecommitdiffstats
path: root/src/exiv2wrapper.cpp
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-01-22 20:44:32 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-01-22 20:44:32 +0100
commitab611de375e6ef5a5d9271247bd594aa30b275e6 (patch)
treeb2b7e56101f01dd4d5c04d5d8f8043dfa1f6f52b /src/exiv2wrapper.cpp
parent9a8a5ff1b0daa3293eb94c6cba16a42f43201715 (diff)
downloadpyexiv2-ab611de375e6ef5a5d9271247bd594aa30b275e6.tar.gz
Read-only access to the mime type of an image.
From an original patch by Matt Mossholder (mattcm@mourneblade.mossholder.com).
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r--src/exiv2wrapper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp
index 45ee5e1..b6c85cf 100644
--- a/src/exiv2wrapper.cpp
+++ b/src/exiv2wrapper.cpp
@@ -118,6 +118,12 @@ unsigned int Image::pixelHeight() const
return _image->pixelHeight();
}
+std::string Image::mimeType() const
+{
+ CHECK_METADATA_READ
+ return _image->mimeType();
+}
+
boost::python::list Image::exifKeys()
{
CHECK_METADATA_READ