Commit bc124b0e authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

backport commit #1022795 from trunk

svn path=/branches/KDE/4.2/kdegraphics/libs/libkexiv2/; revision=1022806
parent 77b8365a
......@@ -314,20 +314,23 @@ bool KExiv2::save(const QString& filePath) const
}
// TIFF/EP Raw file based supported by Exiv2 0.18 are : DNG, NEF, PEF.
QString rawTiffBasedSupported("dng nef pef");
QString rawTiffBasedNotSupported("3fr arw cr2 dcr erf k25 kdc mos orf raw sr2 srf");
QStringList rawTiffBasedSupported = QStringList()
<< "dng" << "nef" << "pef";
QStringList rawTiffBasedNotSupported = QStringList()
<< "3fr" << "arw" << "cr2" << "dcr" << "erf" << "k25"
<< "kdc" << "mos" << "orf" << "raw" << "sr2" << "srf";
QString ext = finfo.suffix().toLower();
if (rawTiffBasedNotSupported.contains(ext))
{
kDebug(51003) << "'" << finfo.fileName().toAscii().constData()
<< "' is TIFF based RAW file not yet supported. Metadata not saved." << endl;
kDebug(51003) << finfo.fileName()
<< "is TIFF based RAW file not yet supported. Metadata not saved." << endl;
return false;
}
if (rawTiffBasedSupported.contains(finfo.suffix().toLower()) && !d->writeRawFiles)
if (rawTiffBasedSupported.contains(ext) && !d->writeRawFiles)
{
kDebug(51003) << "'" << finfo.fileName().toAscii().constData()
<< "' is TIFF based RAW file supported but writing mode is disabled. "
kDebug(51003) << finfo.fileName()
<< "is TIFF based RAW file supported but writing mode is disabled. "
<< "Metadata not saved." << endl;
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment