From 8222a45b802786b5ecff4bae6a66de180d5cf964 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Wed, 3 Jan 2007 23:26:09 +0100 Subject: Added and implemented Image::deleteThumbnail() and Image::dumpThumbnailToFile(). --- src/libpyexiv2.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libpyexiv2.hpp') 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 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; -- cgit