aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpyexiv2.hpp
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-01-03 23:26:09 +0100
committerOlivier Tilloy <olivier@tilloy.net>2007-01-03 23:26:09 +0100
commit8222a45b802786b5ecff4bae6a66de180d5cf964 (patch)
tree2b15786a68c10b03ca16c8eaf123bab5d84e332b /src/libpyexiv2.hpp
parent35bf3a8dcc8812a9956108f9b401f478cadc60f7 (diff)
downloadpyexiv2-8222a45b802786b5ecff4bae6a66de180d5cf964.tar.gz
Added and implemented Image::deleteThumbnail() and Image::dumpThumbnailToFile().
Diffstat (limited to 'src/libpyexiv2.hpp')
-rw-r--r--src/libpyexiv2.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp
index 91956cc..217da50 100644
--- a/src/libpyexiv2.hpp
+++ b/src/libpyexiv2.hpp
@@ -23,6 +23,7 @@
Author(s): Olivier Tilloy <olivier@tilloy.net>
History: 28-Dec-06, Olivier Tilloy: created
30-Dec-06, Olivier Tilloy: added IPTC-related methods
+ 03-Jan-07, Olivier Tilloy: added thumbnail-related methods
*/
// *****************************************************************************
@@ -109,6 +110,15 @@ namespace LibPyExiv2
// Returns true if successful, false otherwise.
bool setThumbnailData(std::string data);
+ // Deletes the thumbnail embedded in the image.
+ void deleteThumbnail();
+
+ // Writes the thumbnail to an image file.
+ // A filename extension is appended to the given path according to the
+ // image type of the thumbnail, so it should not include an extension.
+ // Returns true if successful, false otherwise.
+ bool dumpThumbnailToFile(const std::string path);
+
private:
std::string _filename;
Exiv2::Image::AutoPtr _image;