libs/libkexiv2/libkexiv2
kexiv2exif.cpp
Go to the documentation of this file.
157 KExiv2::MetaDataMap KExiv2::getExifTagsDataList(const QStringList& exifKeysFilter, bool invertSelection) const
417 bool KExiv2::getExifTagRational(const char* exifTagName, long int& num, long int& den, int component) const
468 bool KExiv2::setExifTagRational(const char* exifTagName, long int num, long int den, bool setProgramName) const
490 bool KExiv2::setExifTagData(const char* exifTagName, const QByteArray& data, bool setProgramName) const
566 const std::string &exifdatetime(dateTime.toString(QString("yyyy:MM:dd hh:mm:ss")).toAscii().constData());
593 QString KExiv2::createExifUserStringFromValue(const char* exifTagName, const QVariant& val, bool escapeCR)
644 const std::string &exifdatetime(dateTime.toString(QString("yyyy:MM:dd hh:mm:ss")).toAscii().constData());
741 QVariant KExiv2::getExifTagVariant(const char* exifTagName, bool rationalAsListOfInts, bool stringEscapeCR, int component) const
860 bool KExiv2::setExifTagString(const char* exifTagName, const QString& value, bool setProgramName) const
985 Exiv2::ExifData::const_iterator pos = d->exifMetadata().findKey(Exiv2::ExifKey("Exif.Image.NewSubfileType"));
QImage transformed(const QMatrix &matrix, Qt::TransformationMode mode) const
QString fromAscii(const char *str, int size)
QImage getExifThumbnail(bool fixOrientation) const
Return a QImage copy of Exif thumbnail image.
Definition: kexiv2exif.cpp:882
QString toString(Qt::DateFormat format) const
QByteArray toByteArray() const
bool loadFromData(const uchar *data, int len, const char *format)
const Exiv2::ExifData & exifMetadata() const
Definition: kexiv2_p.h:163
bool save(const QString &fileName, const char *format, int quality) const
QList< QVariant > toList() const
QDateTime toDateTime() const
TagsMap getStdExifTagsList() const
Return a map of all standard Exif tags supported by Exiv2.
Definition: kexiv2exif.cpp:1055
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:650
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
bool setExifComment(const QString &comment, bool setProgramName=true) const
Set the Exif user comments from image.
Definition: kexiv2exif.cpp:298
KExiv2::MetaDataMap getExifTagsDataList(const QStringList &exifKeysFilter=QStringList(), 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:157
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:92
bool isNull() const
bool hasExif() const
Return 'true' if metadata container in memory as Exif.
Definition: kexiv2exif.cpp:68
QImage copy(const QRect &rectangle) const
bool rotateExifQImage(QImage &image, ImageOrientation orientation) const
Fix orientation of a QImage image accordingly with Exif orientation tag.
Definition: kexiv2exif.cpp:930
bool setExifTagData(const char *exifTagName, const QByteArray &data, bool setProgramName=true) const
Set an Exif tag content using a bytes array.
Definition: kexiv2exif.cpp:490
bool removeExifThumbnail() const
Remove the Exif Thumbnail from the image.
Definition: kexiv2exif.cpp:1034
int size() const
bool isNull() const
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:417
bool getExifTagLong(const char *exifTagName, long &val) const
Get an Exif tag content like a long value.
Definition: kexiv2exif.cpp:678
void resize(int size)
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:516
QString fromLocal8Bit(const char *str, int size)
bool setExif(const QByteArray &data) const
Set the Exif data using a Qt byte array.
Definition: kexiv2exif.cpp:132
uint toUInt(bool *ok) const
int toInt(bool *ok) const
QString getExifComment() const
Return a QString copy of Exif user comments.
Definition: kexiv2exif.cpp:231
QString getExifTagDescription(const char *exifTagName)
Return the Exif Tag description or a null string.
Definition: kexiv2exif.cpp:368
bool isEmpty() const
bool isEmpty() const
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition: kexiv2.h:123
QString trimmed() const
const char * constData() const
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:590
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:741
virtual bool open(QFlags< QIODevice::OpenModeFlag > flags)
T & first()
QString getExifTagString(const char *exifTagName, bool escapeCR=true) const
Get an Exif tags content like a string.
Definition: kexiv2exif.cpp:827
iterator end()
TagsMap getMakernoteTagsList() const
Return a map of all non-standard Exif tags (makernotes) supported by Exiv2.
Definition: kexiv2exif.cpp:1107
QDateTime fromString(const QString &string, Qt::DateFormat format)
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:541
bool isValid() const
QString & replace(int position, int n, QChar after)
QString getExifTagTitle(const char *exifTagName)
Return the Exif Tag title or a null string.
Definition: kexiv2exif.cpp:347
bool setExifTagLong(const char *exifTagName, long val, bool setProgramName=true) const
Set an Exif tag content using a long value.
Definition: kexiv2exif.cpp:446
===========================================================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
QByteArray toLatin1() const
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:389
QByteArray getExifTagData(const char *exifTagName) const
Get an Exif tag content like a bytes array.
Definition: kexiv2exif.cpp:710
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:593
QTextCodec * codecForName(const QByteArray &name)
===========================================================This file is a part of digiKam project htt...
bool canEncode(QChar ch) const
char * data()
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
bool setTiffThumbnail(const QImage &thumb, bool setProgramName=true) const
Adds a JPEG thumbnail to a TIFF images.
Definition: kexiv2exif.cpp:975
double toDouble(bool *ok) const
iterator insert(const Key &key, const T &value)
bool setExifThumbnail(const QImage &thumb, bool setProgramName=true) const
Set the Exif Thumbnail image.
Definition: kexiv2exif.cpp:943
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:468
bool setExifTagString(const char *exifTagName, const QString &value, bool setProgramName=true) const
Set an Exif tag content using a string.
Definition: kexiv2exif.cpp:860
Type type() const
int size() const
QString toString() const
iterator begin()
QMatrix toMatrix() const
Returns a QMatrix representing this matrix.
Definition: rotationmatrix.cpp:291
===========================================================This file is a part of digiKam project htt...
QByteArray encodeName(const QString &fileName)
QByteArray toAscii() const
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.