Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image that is optionally embedded in IFD1 of the Exif data. These methods do not write to the Exif metadata. Manipulators are provided in subclass ExifThumb. More...
#include <exif.hpp>
Public Member Functions | |
Creators | |
ExifThumbC (const ExifData &exifData) | |
Constructor. | |
Accessors | |
DataBuf | copy () const |
Return the thumbnail image in a DataBuf. The caller owns the data buffer and DataBuf ensures that it will be deleted. | |
long | writeFile (const std::string &path) const |
Write the thumbnail image to a file. More... | |
const char * | mimeType () const |
Return the MIME type of the thumbnail, either "image/tiff" or "image/jpeg" . | |
const char * | extension () const |
Return the file extension for the format of the thumbnail (".tif" or ".jpg"). | |
Access to a Exif thumbnail image. This class provides higher level accessors to the thumbnail image that is optionally embedded in IFD1 of the Exif data. These methods do not write to the Exif metadata. Manipulators are provided in subclass ExifThumb.
long Exiv2::ExifThumbC::writeFile | ( | const std::string & | path | ) | const |
Write the thumbnail image to a file.
A filename extension is appended to path according to the image type of the thumbnail, so path should not include an extension. The function will overwrite an existing file of the same name.
path | File name of the thumbnail without extension. |