diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-01-02 20:08:00 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-01-02 20:08:00 +0100 |
commit | 02c86c9d2f109b4a5e7836e5bd9465724ab4c90e (patch) | |
tree | 0558da71b69396c7f47afd256edb1a6deea90a27 /src/libpyexiv2.hpp | |
parent | 00d63e7995132274b63cae056c084ae2df8cbba6 (diff) | |
download | pyexiv2-02c86c9d2f109b4a5e7836e5bd9465724ab4c90e.tar.gz |
Added the declaration of methods for accessing the thumbnail data (not implemented yet).
Diffstat (limited to 'src/libpyexiv2.hpp')
-rw-r--r-- | src/libpyexiv2.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp index c650236..61f46b4 100644 --- a/src/libpyexiv2.hpp +++ b/src/libpyexiv2.hpp @@ -98,6 +98,18 @@ namespace LibPyExiv2 // type and previous value if it existed, empty strings otherwise. boost::python::tuple deleteIptcTag(std::string key); + // Read and write access to the thumbnail embedded in the image. + + // Returns a tuple containing the format of the thumbnail ("TIFF" or + // "JPEG") and the thumbnail raw data as a string buffer. + boost::python::tuple getThumbnailData(); + + // Sets the thumbnail of the image. The first element of the tuple is + // the format of the thumbnail ("TIFF" or "JPEG") and the second element + // is the thumbnail raw data as a string buffer. + // Returns true if successful, false otherwise. + bool setThumbnailData(boost::python::tuple data); + private: std::string _filename; Exiv2::Image::AutoPtr _image; |