Commit 83bc987c authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

factorize

parent 35af4454
......@@ -124,8 +124,7 @@ bool Task::imageResize(const EmailSettings& settings, const KUrl& orgUrl,
QImage img;
// Check if RAW file.
QString rawFilesExt(KDcraw::rawFiles());
if (rawFilesExt.toUpper().contains( fi.suffix().toUpper() ))
if (KPMetadata::isRawFile(orgUrl))
KDcraw::loadDcrawPreview(img, orgUrl.path());
else
img.load(orgUrl.path());
......
Markdown is supported
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