diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-01-22 20:44:32 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-01-22 20:44:32 +0100 |
commit | ab611de375e6ef5a5d9271247bd594aa30b275e6 (patch) | |
tree | b2b7e56101f01dd4d5c04d5d8f8043dfa1f6f52b /src/exiv2wrapper.cpp | |
parent | 9a8a5ff1b0daa3293eb94c6cba16a42f43201715 (diff) | |
download | pyexiv2-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.cpp | 6 |
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 |