KExiv2
kexiv2previews.cpp
75 Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open((const char*)(QFile::encodeName(filePath).constData()));
78 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((const char*)(QFile::encodeName(filePath).constData()));
84 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
98 Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open((Exiv2::byte*)imgData.data(), imgData.size());
101 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((Exiv2::byte*)imgData.data(), imgData.size());
107 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
192 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
int dataSize(int index=0)
For each contained preview image, return the size of the image data in bytes, width and height of the...
Definition kexiv2previews.cpp:143
QSize originalSize() const
Returns the pixel size of the original image, as read from the file (not the metadata).
Definition kexiv2previews.cpp:122
QString originalMimeType() const
Returns the mimeType of the original image, detected from the file's content.
Definition kexiv2previews.cpp:130
QByteArray data(int index=0)
Retrieve the image data for the specified embedded preview image.
Definition kexiv2previews.cpp:178
QImage image(int index=0)
Loads the data of the specified preview and creates a QImage from this data.
Definition kexiv2previews.cpp:202
KExiv2Previews(const QString &filePath)
Open the given file and scan for embedded preview images.
Definition kexiv2previews.cpp:69
char * data()
qsizetype size() const const
QByteArray encodeName(const QString &fileName)
bool loadFromData(QByteArrayView data, const char *format)
QSize size() const const
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.