KExiv2
kexiv2.h
55 /** The image metadata writing mode, between image file metadata and XMP sidecar file, depending on the context.
190 * If image file path do not include a file name or is empty, this function return a null string.
224 /** Load all metadata (Exif, Iptc, Xmp, and JFIF Comments) from a picture (JPEG, RAW, TIFF, PNG,
327 /** Return the image orientation set in Exif metadata. The makernotes of image are also parsed to
337 /** Return the image color-space set in Exif metadata. The makernotes of image are also parsed to
352 /** Set the Exif and Iptc time stamp. If 'setDateTimeDigitized' parameter is true, the 'Digitalized'
358 /** Return the digitization time stamp of the image. First Exif information is checked, then IPTC.
477 /** Adds a JPEG thumbnail to a TIFF images. Use this instead of setExifThumbnail for TIFF images. */
485 /** Set the Exif user comments from image. Look Exif specification for more details about this tag.
497 bool setExifTagString(const char* exifTagName, const QString& value, bool setProgramName=true) const;
515 bool getExifTagRational(const char* exifTagName, long int& num, long int& den, int component=0) const;
521 bool setExifTagRational(const char* exifTagName, long int num, long int den, bool setProgramName=true) const;
530 bool setExifTagData(const char* exifTagName, const QByteArray& data, bool setProgramName=true) const;
536 Rationals will be returned as QVariant::List with two integer QVariants (numerator, denominator)
538 An exif tag of numerical type may contain more than one value; set component to the desired index.
540 QVariant getExifTagVariant(const char* exifTagName, bool rationalAsListOfInts=true, bool escapeCR=true, int component=0) const;
545 For the meaning of rationalWantSmallDenominator, see the documentation of the convertToRational methods.
564 /** Takes a QVariant value as it could have been retrieved by getExifTagVariant with the given exifTagName,
569 QString createExifUserStringFromValue(const char* exifTagName, const QVariant& val, bool escapeCR=true);
591 KExiv2::MetaDataMap getExifTagsDataList(const QStringList& exifKeysFilter=QStringList(), bool invertSelection=false) const;
633 bool setIptcTagString(const char* iptcTagName, const QString& value, bool setProgramName=true) const;
635 /** Returns a strings list with of multiple Iptc tags from the image. Return an empty list if no tag is found. */
658 bool setIptcTagData(const char* iptcTagName, const QByteArray& data, bool setProgramName=true) const;
691 KExiv2::MetaDataMap getIptcTagsDataList(const QStringList& iptcKeysFilter=QStringList(), bool invertSelection=false) const;
693 /** Return a strings list of Iptc keywords from image. Return an empty list if no keyword are set.
697 /** Set Iptc keywords using a list of strings defined by 'newKeywords' parameter. Use 'getImageKeywords()'
698 method to set 'oldKeywords' parameter with existing keywords from image. The method will compare
699 all new keywords with all old keywords to prevent duplicate entries in image. Return true if keywords
705 /** Return a strings list of Iptc subjects from image. Return an empty list if no subject are set.
709 /** Set Iptc subjects using a list of strings defined by 'newSubjects' parameter. Use 'getImageSubjects()'
710 method to set 'oldSubjects' parameter with existing subjects from image. The method will compare
711 all new subjects with all old subjects to prevent duplicate entries in image. Return true if subjects
717 /** Return a strings list of Iptc sub-categories from image. Return an empty list if no sub-category
722 /** Set Iptc sub-categories using a list of strings defined by 'newSubCategories' parameter. Use
723 'getImageSubCategories()' method to set 'oldSubCategories' parameter with existing sub-categories
724 from image. The method will compare all new sub-categories with all old sub-categories to prevent
727 bool setIptcSubCategories(const QStringList& oldSubCategories, const QStringList& newSubCategories,
805 KExiv2::MetaDataMap getXmpTagsDataList(const QStringList& xmpKeysFilter=QStringList(), bool invertSelection=false) const;
812 KExiv2::AltLangMap getXmpTagStringListLangAlt(const char* xmpTagName, bool escapeCR=true) const;
826 QString getXmpTagStringLangAlt(const char* xmpTagName, const QString& langAlt, bool escapeCR) const;
828 /** Set a Xmp tag content using a string with an alternative language header. 'langAlt' contain the
836 /** Get a Xmp tag content like a sequence of strings. If 'escapeCR' parameter is true, the CR characters
847 /** Get a Xmp tag content like a bag of strings. If 'escapeCR' parameter is true, the CR characters
866 /** Remove those Xmp tag entries that are listed in entriesToRemove from the entries in metadata.
877 Rationals will be returned as QVariant::List with two integer QVariants (numerator, denominator)
883 QVariant getXmpTagVariant(const char* xmpTagName, bool rationalAsListOfInts=true, bool stringEscapeCR=true) const;
885 /** Return a strings list of Xmp keywords from image. Return an empty list if no keyword are set.
896 /** Remove those Xmp keywords that are listed in keywordsToRemove from the keywords in metadata.
901 /** Return a strings list of Xmp subjects from image. Return an empty list if no subject are set.
912 /** Remove those Xmp subjects that are listed in subjectsToRemove from the subjects in metadata.
917 /** Return a strings list of Xmp sub-categories from image. Return an empty list if no sub-category
924 all new sub-categories with all already existing sub-categories to prevent duplicate entries in image.
929 /** Remove those Xmp sub-categories that are listed in categoriesToRemove from the sub-categories in metadata.
966 as described in the XMP specification. Returns a null string in the information cannot be found.
971 /** Get GPS location information set in the image, as a double floating point number as in degrees
978 /** Get GPS altitude information, in meters, relative to sea level (positive sign above sea level)
985 bool setGPSInfo(const double altitude, const double latitude, const double longitude, const bool setProgramName=true);
990 bool setGPSInfo(const double* const altitude, const double latitude, const double longitude, const bool setProgramName=true);
995 bool setGPSInfo(const double altitude, const QString &latitude, const QString &longitude, const bool setProgramName=true);
997 /** Remove all Exif tags relevant of GPS location information. Return true if all tags have been
1023 static QString convertToGPSCoordinateString(const long int numeratorDegrees, const long int denominatorDegrees,
1028 /** Converts a GPS position stored as double floating point number in degrees to the form described
1033 /** Converts a GPSCoordinate string as defined by XMP to three rationals and the direction reference.
1035 If minutes is given in the fractional form, a denominator of 1000000 for the minutes will be used.
1043 /** Convert a GPSCoordinate string as defined by XMP to a double floating point number in degrees
1047 static bool convertFromGPSCoordinateString(const QString& gpsString, double* const coordinate);
1049 /** Converts a GPSCoordinate string to user presentable numbers, integer degrees and minutes and
1056 /** Converts a double floating point number to user presentable numbers, integer degrees and minutes and
QString getXmpTagString(const char *xmpTagName, bool escapeCR=true) const
Get a Xmp tag content like a string.
Definition kexiv2xmp.cpp:336
virtual bool load(const QString &filePath) const
Load all metadata (Exif, Iptc, Xmp, and JFIF Comments) from a picture (JPEG, RAW, TIFF,...
Definition kexiv2.cpp:258
bool applyChanges() const
The same than save() method, but it apply on current image.
Definition kexiv2.cpp:447
QStringList getIptcSubjects() const
Return a strings list of Iptc subjects from image.
Definition kexiv2iptc.cpp:660
static bool convertFromGPSCoordinateString(const QString &coordinate, long int *const numeratorDegrees, long int *const denominatorDegrees, long int *const numeratorMinutes, long int *const denominatorMinutes, long int *const numeratorSeconds, long int *const denominatorSeconds, char *const directionReference)
Converts a GPSCoordinate string as defined by XMP to three rationals and the direction reference.
Definition kexiv2gps.cpp:824
QMap< QString, QStringList > TagsMap
A map used to store Tags Key and a list of Tags properties :
Definition kexiv2.h:125
bool rotateExifQImage(QImage &image, ImageOrientation orientation) const
Fix orientation of a QImage image accordingly with Exif orientation tag.
Definition kexiv2exif.cpp:944
bool removeExifTag(const char *exifTagName, bool setProgramName=true) const
Remove the Exif tag 'exifTagName' from Exif metadata.
Definition kexiv2exif.cpp:368
TagsMap getMakernoteTagsList() const
Return a map of all non-standard Exif tags (makernotes) supported by Exiv2.
Definition kexiv2exif.cpp:1139
bool setIptcSubCategories(const QStringList &oldSubCategories, const QStringList &newSubCategories, bool setProgramName=true) const
Set Iptc sub-categories using a list of strings defined by 'newSubCategories' parameter.
Definition kexiv2iptc.cpp:793
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:643
bool setExifTagString(const char *exifTagName, const QString &value, bool setProgramName=true) const
Set an Exif tag content using a string.
Definition kexiv2exif.cpp:866
static QString sidecarPath(const QString &path)
Like sidecarFilePathForFile(), but works for local file path.
Definition kexiv2.cpp:170
bool getExifTagLong(const char *exifTagName, long &val) const
Get an Exif tag content like a long value.
Definition kexiv2exif.cpp:664
void setWriteRawFiles(const bool on)
Enable or disable writing metadata operations to RAW tiff based files.
Definition kexiv2.cpp:486
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition kexiv2.h:112
static bool unregisterXmpNameSpace(const QString &uri)
Unregister a previously registered custom namespace.
Definition kexiv2xmp.cpp:1107
KExiv2::ImageOrientation getImageOrientation() const
Return the image orientation set in Exif metadata.
Definition kexiv2image.cpp:241
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
static bool canWriteXmp(const QString &filePath)
Return 'true' if Xmp can be written in file.
Definition kexiv2xmp.cpp:17
static QString sidecarFilePathForFile(const QString &path)
Return the XMP Sidecar file path for a image file path.
Definition kexiv2.cpp:145
bool loadFromData(const QByteArray &imgData) const
Load all metadata (Exif, Iptc, Xmp, and JFIF Comments) from a byte array.
Definition kexiv2.cpp:203
KExiv2::ImageColorWorkSpace getImageColorWorkSpace() const
Return the image color-space set in Exif metadata.
Definition kexiv2image.cpp:435
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:152
virtual bool setImagePreview(const QImage &preview, bool setProgramName=true) const
Set the Iptc preview image.
Definition kexiv2image.cpp:1077
bool useXMPSidecar4Reading() const
Return true if using XMP sidecar for reading metadata is enabled.
Definition kexiv2.cpp:501
static bool cleanupExiv2()
Return true if Exiv2 library memory allocations are cleaned properly.
Definition kexiv2.cpp:75
bool clearComments() const
Clear the Comments metadata container in memory.
Definition kexiv2comments.cpp:56
static bool supportMetadataWritting(const QString &typeMime)
Return true if library can write metadata to typeMime file format.
Definition kexiv2.cpp:102
QString getGPSLatitudeString() const
Get GPS location information set in the image, in the GPSCoordinate format as described in the XMP sp...
Definition kexiv2gps.cpp:296
bool setImageColorWorkSpace(ImageColorWorkSpace workspace, bool setProgramName=true) const
Set the Exif color-space tag of image.
Definition kexiv2image.cpp:515
QString getExifTagString(const char *exifTagName, bool escapeCR=true) const
Get an Exif tags content like a string.
Definition kexiv2exif.cpp:834
static QString convertToGPSCoordinateString(const long int numeratorDegrees, const long int denominatorDegrees, const long int numeratorMinutes, const long int denominatorMinutes, const long int numeratorSeconds, long int denominatorSeconds, const char directionReference)
Converts a GPS position stored as rationals in Exif to the form described as GPSCoordinate in the XMP...
Definition kexiv2gps.cpp:710
QByteArray getIptc(bool addIrbHeader=false) const
Return a Qt byte array copy of Iptc container get from current image.
Definition kexiv2iptc.cpp:75
QStringList getXmpKeywords() const
Return a strings list of Xmp keywords from image.
Definition kexiv2xmp.cpp:1176
static bool canWriteExif(const QString &filePath)
Return 'true' if Exif can be written in file.
Definition kexiv2exif.cpp:27
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:583
bool isEmpty() const
Return 'true' if metadata container in memory as no Comments, Exif, Iptc, and Xmp.
Definition kexiv2.cpp:458
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:494
bool setTiffThumbnail(const QImage &thumb, bool setProgramName=true) const
Adds a JPEG thumbnail to a TIFF images.
Definition kexiv2exif.cpp:989
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:86
bool initializeGPSInfo(const bool setProgramName)
Make sure all static required GPS EXIF and XMP tags exist.
Definition kexiv2gps.cpp:316
static bool convertToUserPresentableNumbers(const QString &coordinate, int *const degrees, int *const minutes, double *const seconds, char *const directionReference)
Converts a GPSCoordinate string to user presentable numbers, integer degrees and minutes and double f...
Definition kexiv2gps.cpp:912
static bool canWriteIptc(const QString &filePath)
Return 'true' if Iptc can be written in file.
Definition kexiv2iptc.cpp:17
static QString Exiv2Version()
Return a string version of Exiv2 release in format "major.minor.patch".
Definition kexiv2.cpp:132
TagsMap getStdExifTagsList() const
Return a map of all standard Exif tags supported by Exiv2.
Definition kexiv2exif.cpp:1087
KExiv2::TagsMap getIptcTagsList() const
Return a map of all standard Iptc tags supported by Exiv2.
Definition kexiv2iptc.cpp:857
QString getExifTagDescription(const char *exifTagName)
Return the Exif Tag description or a null string.
Definition kexiv2exif.cpp:347
static bool canWriteComment(const QString &filePath)
Return 'true' if Comments can be written in file.
Definition kexiv2comments.cpp:17
bool getImagePreview(QImage &preview) const
Return a QImage copy of Iptc preview image.
Definition kexiv2image.cpp:1055
bool setExifThumbnail(const QImage &thumb, bool setProgramName=true) const
Set the Exif Thumbnail image.
Definition kexiv2exif.cpp:957
bool addToXmpTagStringBag(const char *xmpTagName, const QStringList &entriesToAdd, bool setProgramName) const
Set an Xmp tag content using a list of strings defined by the 'entriesToAdd' parameter.
Definition kexiv2xmp.cpp:900
QDateTime getDigitizationDateTime(bool fallbackToCreationTime=false) const
Return the digitization time stamp of the image.
Definition kexiv2image.cpp:939
QString getExifComment() const
Return a QString copy of Exif user comments.
Definition kexiv2exif.cpp:226
QString getCommentsDecoded() const
Return a Qt string object of Comments from current image decoded using the 'detectEncodingAndDecode()...
Definition kexiv2comments.cpp:66
bool setComments(const QByteArray &data) const
Set the Comments data using a Qt byte array.
Definition kexiv2comments.cpp:71
MetadataWritingMode
The image metadata writing mode, between image file metadata and XMP sidecar file,...
Definition kexiv2.h:59
@ WRITETOSIDECARONLY4READONLYFILES
Write metadata to sidecar file only for read only images such as RAW files for example.
Definition kexiv2.h:70
bool setXmp(const QByteArray &data) const
Set the Xmp data using a Qt byte array.
Definition kexiv2xmp.cpp:126
bool removeXmpKeywords(const QStringList &keywordsToRemove, bool setProgramName=true)
Remove those Xmp keywords that are listed in keywordsToRemove from the keywords in metadata.
Definition kexiv2xmp.cpp:1186
QStringList getIptcTagsStringList(const char *iptcTagName, bool escapeCR=true) const
Returns a strings list with of multiple Iptc tags from the image.
Definition kexiv2iptc.cpp:446
QStringList getXmpSubjects() const
Return a strings list of Xmp subjects from image.
Definition kexiv2xmp.cpp:1206
QImage getExifThumbnail(bool fixOrientation) const
Return a QImage copy of Exif thumbnail image.
Definition kexiv2exif.cpp:888
QStringList getIptcKeywords() const
Return a strings list of Iptc keywords from image.
Definition kexiv2iptc.cpp:555
bool getGPSInfo(double &altitude, double &latitude, double &longitude) const
Get all GPS location information set in image.
Definition kexiv2gps.cpp:28
bool setXmpKeywords(const QStringList &newKeywords, bool setProgramName=true) const
Set Xmp keywords using a list of strings defined by 'newKeywords' parameter.
Definition kexiv2xmp.cpp:1181
KExiv2::MetaDataMap getIptcTagsDataList(const QStringList &iptcKeysFilter=QStringList(), bool invertSelection=false) const
Return a map of Iptc tags name/value found in metadata sorted by Iptc keys given by 'iptcKeysFilter'.
Definition kexiv2iptc.cpp:146
bool setGPSInfo(const double altitude, const double latitude, const double longitude, const bool setProgramName=true)
Set all GPS location information into image.
Definition kexiv2gps.cpp:358
bool setXmpSubCategories(const QStringList &newSubCategories, bool setProgramName=true) const
Set Xmp sub-categories using a list of strings defined by 'newSubCategories' parameter.
Definition kexiv2xmp.cpp:1196
bool setXmpTagStringListLangAlt(const char *xmpTagName, const KExiv2::AltLangMap &values, bool setProgramName) const
Set an Alternative Language Xmp tag content using a map.
Definition kexiv2xmp.cpp:517
KExiv2::TagsMap getXmpTagsList() const
Return a map of all standard Xmp tags supported by Exiv2.
Definition kexiv2xmp.cpp:1221
bool getGPSAltitude(double *const altitude) const
Get GPS altitude information, in meters, relative to sea level (positive sign above sea level)
Definition kexiv2gps.cpp:222
QMap< QString, QString > AltLangMap
A map used to store a list of Alternative Language values.
Definition kexiv2.h:118
bool removeGPSInfo(const bool setProgramName=true)
Remove all Exif tags relevant of GPS location information.
Definition kexiv2gps.cpp:507
static bool initializeExiv2()
Return true if Exiv2 library initialization is done properly.
Definition kexiv2.cpp:53
bool setIptcSubjects(const QStringList &oldSubjects, const QStringList &newSubjects, bool setProgramName=true) const
Set Iptc subjects using a list of strings defined by 'newSubjects' parameter.
Definition kexiv2iptc.cpp:695
QString getXmpTagTitle(const char *xmpTagName)
Return the Xmp Tag title or a null string.
Definition kexiv2xmp.cpp:281
bool getGPSLatitudeNumber(double *const latitude) const
Get GPS location information set in the image, as a double floating point number as in degrees where ...
Definition kexiv2gps.cpp:43
bool setImageDimensions(const QSize &size, bool setProgramName=true) const
Set the size of image in pixels in Exif tags.
Definition kexiv2image.cpp:201
bool removeXmpSubCategories(const QStringList &categoriesToRemove, bool setProgramName=true)
Remove those Xmp sub-categories that are listed in categoriesToRemove from the sub-categories in meta...
Definition kexiv2xmp.cpp:1201
KExiv2::AltLangMap getXmpTagStringListLangAlt(const char *xmpTagName, bool escapeCR=true) const
Get all redondant Alternative Language Xmp tags content like a map.
Definition kexiv2xmp.cpp:467
bool hasIptc() const
Return 'true' if metadata container in memory as Iptc.
Definition kexiv2iptc.cpp:51
bool setIptcTagString(const char *iptcTagName, const QString &value, bool setProgramName=true) const
Set an Iptc tag content using a string.
Definition kexiv2iptc.cpp:421
static QString detectLanguageAlt(const QString &value, QString &lang)
Language Alternative autodetection.
Definition kexiv2comments.cpp:77
bool setIptcTagsStringList(const char *iptcTagName, int maxSize, const QStringList &oldValues, const QStringList &newValues, bool setProgramName=true) const
Set multiple Iptc tags contents using a strings list.
Definition kexiv2iptc.cpp:485
bool hasComments() const
Return 'true' if metadata container in memory as Comments.
Definition kexiv2comments.cpp:51
bool writeRawFiles() const
Return true if writing metadata operations on RAW tiff based files is enabled.
Definition kexiv2.cpp:491
QString getIptcTagTitle(const char *iptcTagName)
Return the Iptc Tag title or a null string.
Definition kexiv2iptc.cpp:254
bool setIptcTagData(const char *iptcTagName, const QByteArray &data, bool setProgramName=true) const
Set an Iptc tag content using a bytes array.
Definition kexiv2iptc.cpp:334
QByteArray getComments() const
Return a Qt byte array copy of Comments container get from current image.
Definition kexiv2comments.cpp:61
static bool hasSidecar(const QString &path)
Performs a QFileInfo based check if the given local file has a sidecar.
Definition kexiv2.cpp:175
QByteArray getExifTagData(const char *exifTagName) const
Get an Exif tag content like a bytes array.
Definition kexiv2exif.cpp:699
QStringList getIptcSubCategories() const
Return a strings list of Iptc sub-categories from image.
Definition kexiv2iptc.cpp:758
bool setXmpTagStringSeq(const char *xmpTagName, const QStringList &seq, bool setProgramName=true) const
Set a Xmp tag content using the sequence of strings 'seq'.
Definition kexiv2xmp.cpp:743
QStringList getXmpTagStringBag(const char *xmpTagName, bool escapeCR) const
Get a Xmp tag content like a bag of strings.
Definition kexiv2xmp.cpp:796
static bool registerXmpNameSpace(const QString &uri, const QString &prefix)
Register a namespace which Exiv2 doesn't know yet.
Definition kexiv2xmp.cpp:1074
QSize getImageDimensions() const
Return the size of image in pixels using Exif tags.
Definition kexiv2image.cpp:84
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:446
bool removeXmpSubjects(const QStringList &subjectsToRemove, bool setProgramName=true)
Remove those Xmp subjects that are listed in subjectsToRemove from the subjects in metadata.
Definition kexiv2xmp.cpp:1216
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:575
QStringList getXmpTagStringSeq(const char *xmpTagName, bool escapeCR=true) const
Get a Xmp tag content like a sequence of strings.
Definition kexiv2xmp.cpp:691
static QUrl sidecarUrl(const QUrl &url)
Like sidecarFilePathForFile(), but works for remote URLs.
Definition kexiv2.cpp:157
bool setIptc(const QByteArray &data) const
Set the Iptc data using a Qt byte array.
Definition kexiv2iptc.cpp:119
bool setExifComment(const QString &comment, bool setProgramName=true) const
Set the Exif user comments from image.
Definition kexiv2exif.cpp:283
bool setExifTagData(const char *exifTagName, const QByteArray &data, bool setProgramName=true) const
Set an Exif tag content using a bytes array.
Definition kexiv2exif.cpp:468
bool updateFileTimeStamp() const
Return true if file timestamp is updated when metadata are saved.
Definition kexiv2.cpp:521
bool setXmpTagStringBag(const char *xmpTagName, const QStringList &bag, bool setProgramName=true) const
Set a Xmp tag content using the bag of strings 'bag'.
Definition kexiv2xmp.cpp:847
bool removeFromXmpTagStringBag(const char *xmpTagName, const QStringList &entriesToRemove, bool setProgramName) const
Remove those Xmp tag entries that are listed in entriesToRemove from the entries in metadata.
Definition kexiv2xmp.cpp:922
bool setXmpSubjects(const QStringList &newSubjects, bool setProgramName=true) const
Set Xmp subjects using a list of strings defined by 'newSubjects' parameter.
Definition kexiv2xmp.cpp:1211
QString getIptcTagString(const char *iptcTagName, bool escapeCR=true) const
Get an Iptc tag content like a string.
Definition kexiv2iptc.cpp:389
bool removeExifThumbnail() const
Remove the Exif Thumbnail from the image.
Definition kexiv2exif.cpp:1066
QVariant getXmpTagVariant(const char *xmpTagName, bool rationalAsListOfInts=true, bool stringEscapeCR=true) const
Get an Xmp tag content as a QVariant.
Definition kexiv2xmp.cpp:944
QByteArray getXmp() const
Return a Qt byte array copy of XMp container get from current image.
Definition kexiv2xmp.cpp:94
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:729
bool setExifTagLong(const char *exifTagName, long val, bool setProgramName=true) const
Set an Exif tag content using a long value.
Definition kexiv2exif.cpp:424
QString getXmpTagDescription(const char *xmpTagName)
Return the Xmp Tag description or a null string.
Definition kexiv2xmp.cpp:309
QStringList getXmpSubCategories() const
Return a strings list of Xmp sub-categories from image.
Definition kexiv2xmp.cpp:1191
void setUseXMPSidecar4Reading(const bool on)
Enable or disable using XMP sidecar for reading metadata.
Definition kexiv2.cpp:496
bool removeIptcTag(const char *iptcTagName, bool setProgramName=true) const
Remove the all instance of Iptc tags 'iptcTagName' from Iptc metadata.
Definition kexiv2iptc.cpp:294
void setUpdateFileTimeStamp(bool on)
Enable or disable file timestamp updating when metadata are saved.
Definition kexiv2.cpp:516
bool hasExif() const
Return 'true' if metadata container in memory as Exif.
Definition kexiv2exif.cpp:62
bool setXmpTagStringLangAlt(const char *xmpTagName, const QString &value, const QString &langAlt, bool setProgramName=true) const
Set a Xmp tag content using a string with an alternative language header.
Definition kexiv2xmp.cpp:624
QString getIptcTagDescription(const char *iptcTagName)
Return the Iptc Tag description or a null string.
Definition kexiv2iptc.cpp:274
KExiv2::MetaDataMap getXmpTagsDataList(const QStringList &xmpKeysFilter=QStringList(), bool invertSelection=false) const
Return a map of Xmp tags name/value found in metadata sorted by Xmp keys given by 'xmpKeysFilter'.
Definition kexiv2xmp.cpp:164
QByteArray getIptcTagData(const char *iptcTagName) const
Get an Iptc tag content as a bytes array.
Definition kexiv2iptc.cpp:360
bool removeXmpTag(const char *xmpTagName, bool setProgramName=true) const
Remove the Xmp tag 'xmpTagName' from Xmp metadata.
Definition kexiv2xmp.cpp:1139
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:396
bool setImageOrientation(ImageOrientation orientation, bool setProgramName=true) const
Set the Exif orientation tag of image.
Definition kexiv2image.cpp:354
bool getGPSLongitudeNumber(double *const longitude) const
Definition kexiv2gps.cpp:126
bool setImageProgramId(const QString &program, const QString &version) const
Set Program name and program version in Exif and Iptc Metadata.
Definition kexiv2image.cpp:23
bool setXmpTagString(const char *xmpTagName, const QString &value, bool setProgramName=true) const
Set a Xmp tag content using a string.
Definition kexiv2xmp.cpp:377
QString getXmpTagStringLangAlt(const char *xmpTagName, const QString &langAlt, bool escapeCR) const
Get a Xmp tag content like a string set with an alternative language header 'langAlt' (like "fr-FR" f...
Definition kexiv2xmp.cpp:572
QString getExifTagTitle(const char *exifTagName)
Return the Exif Tag title or a null string.
Definition kexiv2exif.cpp:326
bool setIptcKeywords(const QStringList &oldKeywords, const QStringList &newKeywords, bool setProgramName=true) const
Set Iptc keywords using a list of strings defined by 'newKeywords' parameter.
Definition kexiv2iptc.cpp:592
bool setImageDateTime(const QDateTime &dateTime, bool setDateTimeDigitized=false, bool setProgramName=true) const
Set the Exif and Iptc time stamp.
Definition kexiv2image.cpp:854
bool setExif(const QByteArray &data) const
Set the Exif data using a Qt byte array.
Definition kexiv2exif.cpp:127
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:55:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:55:12 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.