#include <exif.hpp>
Public Member Functions | |
Creators | |
ExifThumb (ExifData &exifData) | |
Constructor. | |
Manipulators | |
void | setJpegThumbnail (const std::string &path, URational xres, URational yres, uint16_t unit) |
Set the Exif thumbnail to the JPEG image path. Set XResolution, YResolution and ResolutionUnit to xres, yres and unit, respectively. | |
void | setJpegThumbnail (const byte *buf, long size, URational xres, URational yres, uint16_t unit) |
Set the Exif thumbnail to the JPEG image pointed to by buf, and size size. Set XResolution, YResolution and ResolutionUnit to xres, yres and unit, respectively. | |
void | setJpegThumbnail (const std::string &path) |
Set the Exif thumbnail to the JPEG image path. | |
void | setJpegThumbnail (const byte *buf, long size) |
Set the Exif thumbnail to the JPEG image pointed to by buf, and size size. | |
void | erase () |
Delete the thumbnail from the Exif data. Removes all Exif.Thumbnail.*, i.e., Exif IFD1 tags. |
void Exiv2::ExifThumb::setJpegThumbnail | ( | const byte * | buf, | |
long | size | |||
) |
Set the Exif thumbnail to the JPEG image pointed to by buf, and size size.
This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)
Additional existing Exif thumbnail tags are not modified.
References Exiv2::Exifdatum::setDataArea().
void Exiv2::ExifThumb::setJpegThumbnail | ( | const std::string & | path | ) |
Set the Exif thumbnail to the JPEG image path.
This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)
Error | if reading the file fails. |
Additional existing Exif thumbnail tags are not modified.
References Exiv2::DataBuf::pData_, Exiv2::readFile(), setJpegThumbnail(), and Exiv2::DataBuf::size_.
void Exiv2::ExifThumb::setJpegThumbnail | ( | const byte * | buf, | |
long | size, | |||
URational | xres, | |||
URational | yres, | |||
uint16_t | unit | |||
) |
Set the Exif thumbnail to the JPEG image pointed to by buf, and size size. Set XResolution, YResolution and ResolutionUnit to xres, yres and unit, respectively.
This results in the minimal thumbnail tags being set for a JPEG thumbnail, as mandated by the Exif standard.
Error | if reading the file fails. |
Additional existing Exif thumbnail tags are not modified.
The JPEG image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey.
References setJpegThumbnail().
void Exiv2::ExifThumb::setJpegThumbnail | ( | const std::string & | path, | |
URational | xres, | |||
URational | yres, | |||
uint16_t | unit | |||
) |
Set the Exif thumbnail to the JPEG image path. Set XResolution, YResolution and ResolutionUnit to xres, yres and unit, respectively.
This results in the minimal thumbnail tags being set for a JPEG thumbnail, as mandated by the Exif standard.
Error | if reading the file fails. |
Additional existing Exif thumbnail tags are not modified.
The JPEG image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey.
References Exiv2::DataBuf::pData_, Exiv2::readFile(), and Exiv2::DataBuf::size_.
Referenced by setJpegThumbnail().