KExiv2
kexiv2.cpp
60 registerXmpNameSpace(QString::fromLatin1("http://ns.adobe.com/lightroom/1.0/"), QString::fromLatin1("lr"));
61 registerXmpNameSpace(QString::fromLatin1("http://www.digikam.org/ns/kipi/1.0/"), QString::fromLatin1("kipi"));
62 registerXmpNameSpace(QString::fromLatin1("http://ns.microsoft.com/photo/1.2/"), QString::fromLatin1("MP"));
63 registerXmpNameSpace(QString::fromLatin1("http://ns.acdsee.com/iptc/1.0/"), QString::fromLatin1("acdsee"));
211 Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open((Exiv2::byte*)imgData.data(), imgData.size());
440 qCDebug(LIBKEXIV2_LOG) << "Metadata for file '" << givenFileInfo.fileName() << "' written to XMP sidecar.";
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
static QString sidecarPath(const QString &path)
Like sidecarFilePathForFile(), but works for local file path.
Definition kexiv2.cpp:170
void setWriteRawFiles(const bool on)
Enable or disable writing metadata operations to RAW tiff based files.
Definition kexiv2.cpp:486
static bool unregisterXmpNameSpace(const QString &uri)
Unregister a previously registered custom namespace.
Definition kexiv2xmp.cpp:1107
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 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
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
static bool supportMetadataWritting(const QString &typeMime)
Return true if library can write metadata to typeMime file format.
Definition kexiv2.cpp:102
bool isEmpty() const
Return 'true' if metadata container in memory as no Comments, Exif, Iptc, and Xmp.
Definition kexiv2.cpp:458
static QString Exiv2Version()
Return a string version of Exiv2 release in format "major.minor.patch".
Definition kexiv2.cpp:132
@ WRITETOSIDECARONLY4READONLYFILES
Write metadata to sidecar file only for read only images such as RAW files for example.
Definition kexiv2.h:70
static bool initializeExiv2()
Return true if Exiv2 library initialization is done properly.
Definition kexiv2.cpp:53
bool hasIptc() const
Return 'true' if metadata container in memory as Iptc.
Definition kexiv2iptc.cpp:51
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
static bool hasSidecar(const QString &path)
Performs a QFileInfo based check if the given local file has a sidecar.
Definition kexiv2.cpp:175
static bool registerXmpNameSpace(const QString &uri, const QString &prefix)
Register a namespace which Exiv2 doesn't know yet.
Definition kexiv2xmp.cpp:1074
static QUrl sidecarUrl(const QUrl &url)
Like sidecarFilePathForFile(), but works for remote URLs.
Definition kexiv2.cpp:157
bool updateFileTimeStamp() const
Return true if file timestamp is updated when metadata are saved.
Definition kexiv2.cpp:521
void setUseXMPSidecar4Reading(const bool on)
Enable or disable using XMP sidecar for reading metadata.
Definition kexiv2.cpp:496
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
char * data()
bool isEmpty() const const
qsizetype size() const const
QByteArray encodeName(const QString &fileName)
QString absoluteFilePath() const const
QString canonicalPath() const const
bool exists(const QString &path)
QString fileName() const const
QString filePath() const const
bool isReadable() const const
bool isSymLink() const const
bool isWritable() const const
QString path() const const
QString fromLatin1(QByteArrayView str)
QString fromStdString(const std::string &str)
bool isEmpty() const const
QUrl fromLocalFile(const QString &localFile)
QString path(ComponentFormattingOptions options) const const
void setPath(const QString &path, ParsingMode mode)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:45:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:45:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.