libs/libkexiv2/libkexiv2
kexiv2exif.cpp
Go to the documentation of this file.
141 KExiv2::MetaDataMap KExiv2::getExifTagsDataList(const QStringList& exifKeysFilter, bool invertSelection) const
370 bool KExiv2::getExifTagRational(const char* exifTagName, long int& num, long int& den, int component) const
413 bool KExiv2::setExifTagRational(const char* exifTagName, long int num, long int den, bool setProgramName) const
431 bool KExiv2::setExifTagData(const char* exifTagName, const QByteArray& data, bool setProgramName) const
503 const std::string &exifdatetime(dateTime.toString(QString("yyyy:MM:dd hh:mm:ss")).toAscii().constData());
526 QString KExiv2::createExifUserStringFromValue(const char* exifTagName, const QVariant& val, bool escapeCR)
577 const std::string &exifdatetime(dateTime.toString(QString("yyyy:MM:dd hh:mm:ss")).toAscii().constData());
662 QVariant KExiv2::getExifTagVariant(const char* exifTagName, bool rationalAsListOfInts, bool stringEscapeCR, int component) const
773 bool KExiv2::setExifTagString(const char* exifTagName, const QString& value, bool setProgramName) const
886 Exiv2::ExifData::const_iterator pos = d->exifMetadata().findKey(Exiv2::ExifKey("Exif.Image.NewSubfileType"));
QImage getExifThumbnail(bool fixOrientation) const
Return a QImage copy of Exif thumbnail image.
Definition: kexiv2exif.cpp:791
const Exiv2::ExifData & exifMetadata() const
Definition: kexiv2_p.h:163
TagsMap getStdExifTagsList() const
Return a map of all standard Exif tags supported by Exiv2.
Definition: kexiv2exif.cpp:948
static void convertToRationalSmallDenominator(const double number, long int *const numerator, long int *const denominator)
This method convert a 'number' to a rational value, returned in 'numerator' and 'denominator' paramet...
Definition: kexiv2gps.cpp:626
bool setExifComment(const QString &comment, bool setProgramName=true) const
Set the Exif user comments from image.
Definition: kexiv2exif.cpp:267
RotationMatrix matrix(RotationMatrix::TransformationAction action)
Definition: rotationmatrix.cpp:90
static bool canWriteExif(const QString &filePath)
Return 'true' if Exif can be written in file.
Definition: kexiv2exif.cpp:43
QByteArray getExifEncoded(bool addExifHeader=false) const
Returns the exif data encoded to a QByteArray in a form suitable for storage in a JPEG image...
Definition: kexiv2exif.cpp:84
bool hasExif() const
Return 'true' if metadata container in memory as Exif.
Definition: kexiv2exif.cpp:64
bool rotateExifQImage(QImage &image, ImageOrientation orientation) const
Fix orientation of a QImage image accordingly with Exif orientation tag.
Definition: kexiv2exif.cpp:835
bool setExifTagData(const char *exifTagName, const QByteArray &data, bool setProgramName=true) const
Set an Exif tag content using a bytes array.
Definition: kexiv2exif.cpp:431
bool removeExifThumbnail() const
Remove the Exif Thumbnail from the image.
Definition: kexiv2exif.cpp:931
bool getExifTagRational(const char *exifTagName, long int &num, long int &den, int component=0) const
Get the 'component' index of an Exif tags content like a rational value.
Definition: kexiv2exif.cpp:370
bool getExifTagLong(const char *exifTagName, long &val) const
Get an Exif tag content like a long value.
Definition: kexiv2exif.cpp:607
bool setExifTagVariant(const char *exifTagName, const QVariant &data, bool rationalWantSmallDenominator=true, bool setProgramName=true) const
Set an Exif tag content using a QVariant.
Definition: kexiv2exif.cpp:453
bool setExif(const QByteArray &data) const
Set the Exif data using a Qt byte array.
Definition: kexiv2exif.cpp:120
QString getExifComment() const
Return a QString copy of Exif user comments.
Definition: kexiv2exif.cpp:204
QString getExifTagDescription(const char *exifTagName)
Return the Exif Tag description or a null string.
Definition: kexiv2exif.cpp:329
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition: kexiv2.h:123
static void convertToRational(const double number, long int *const numerator, long int *const denominator, const int rounding)
This method converts 'number' to a rational value, returned in the 'numerator' and 'denominator' para...
Definition: kexiv2gps.cpp:566
QVariant getExifTagVariant(const char *exifTagName, bool rationalAsListOfInts=true, bool escapeCR=true, int component=0) const
Get an Exif tags content as a QVariant.
Definition: kexiv2exif.cpp:662
QString getExifTagString(const char *exifTagName, bool escapeCR=true) const
Get an Exif tags content like a string.
Definition: kexiv2exif.cpp:744
TagsMap getMakernoteTagsList() const
Return a map of all non-standard Exif tags (makernotes) supported by Exiv2.
Definition: kexiv2exif.cpp:996
virtual bool setProgramId(bool on=true) const
Re-implement this method to set automatically the Program Name and Program Version information in Exi...
Definition: kexiv2.cpp:526
KExiv2::MetaDataMap getExifTagsDataList(const QStringList &exifKeysFilter, bool invertSelection=false) const
Return a map of Exif tags name/value found in metadata sorted by Exif keys given by 'exifKeysFilter'...
Definition: kexiv2exif.cpp:141
QString getExifTagTitle(const char *exifTagName)
Return the Exif Tag title or a null string.
Definition: kexiv2exif.cpp:312
bool setExifTagLong(const char *exifTagName, long val, bool setProgramName=true) const
Set an Exif tag content using a long value.
Definition: kexiv2exif.cpp:395
===========================================================This file is a part of digiKam project htt...
QMap< QString, QStringList > TagsMap
A map used to store Tags Key and a list of Tags properties :
Definition: kexiv2.h:136
static void printExiv2ExceptionError(const QString &msg, Exiv2::Error &e)
Generic method to print the Exiv2 C++ Exception error message from 'e'.
QString convertCommentValue(const Exiv2::Exifdatum &exifDatum) const
Wrapper method to convert a Comments content to a QString.
bool removeExifTag(const char *exifTagName, bool setProgramName=true) const
Remove the Exif tag 'exifTagName' from Exif metadata.
Definition: kexiv2exif.cpp:346
QByteArray getExifTagData(const char *exifTagName) const
Get an Exif tag content like a bytes array.
Definition: kexiv2exif.cpp:635
QString createExifUserStringFromValue(const char *exifTagName, const QVariant &val, bool escapeCR=true)
Takes a QVariant value as it could have been retrieved by getExifTagVariant with the given exifTagNam...
Definition: kexiv2exif.cpp:526
===========================================================This file is a part of digiKam project htt...
bool setTiffThumbnail(const QImage &thumb, bool setProgramName=true) const
Adds a JPEG thumbnail to a TIFF images.
Definition: kexiv2exif.cpp:876
bool setExifThumbnail(const QImage &thumb, bool setProgramName=true) const
Set the Exif Thumbnail image.
Definition: kexiv2exif.cpp:848
bool setExifTagRational(const char *exifTagName, long int num, long int den, bool setProgramName=true) const
Set an Exif tag content using a rational value.
Definition: kexiv2exif.cpp:413
bool setExifTagString(const char *exifTagName, const QString &value, bool setProgramName=true) const
Set an Exif tag content using a string.
Definition: kexiv2exif.cpp:773
QMatrix toMatrix() const
Returns a QMatrix representing this matrix.
Definition: rotationmatrix.cpp:291
===========================================================This file is a part of digiKam project htt...
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.