KExiv2
kexiv2previews.cpp
62 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((const char*)(QFile::encodeName(filePath).constData()));
67 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
80 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open((Exiv2::byte*)imgData.data(), imgData.size());
85 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
170 KExiv2Private::printExiv2ExceptionError(QString::fromLatin1("Cannot load metadata using Exiv2 "), e);
QByteArray data(int index=0)
Retrieve the image data for the specified embedded preview image.
Definition: kexiv2previews.cpp:156
QByteArray encodeName(const QString &fileName)
QString originalMimeType() const
Returns the mimeType of the original image, detected from the file's content.
Definition: kexiv2previews.cpp:108
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem properties()
KExiv2Previews(const QString &filePath)
Open the given file and scan for embedded preview images.
Definition: kexiv2previews.cpp:57
bool loadFromData(const uchar *data, int len, const char *format)
QSize originalSize() const
Returns the pixel size of the original image, as read from the file (not the metadata).
Definition: kexiv2previews.cpp:100
QSize size() const const
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:121
QImage image(int index=0)
Loads the data of the specified preview and creates a QImage from this data.
Definition: kexiv2previews.cpp:180
QString fromLatin1(const char *str, int size)
int size() const const
char * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:02:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:02:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.