Commit bf54f86d authored by Maik Qualmann's avatar Maik Qualmann

polish

parent 914aceae
Pipeline #26032 failed with stage
in 60 minutes
......@@ -90,15 +90,20 @@ void FCTask::run()
if (d->settings.behavior == FCContainer::CopyFile)
{
QFileInfo srcInfo(d->srcUrl.toLocalFile());
QString suffix = srcInfo.suffix().toUpper();
QString mimeName = QMimeDatabase().mimeTypeForFile(d->srcUrl.toLocalFile()).name();
if (d->settings.changeImageProperties &&
((suffix == QLatin1String("PGF")) ||
(suffix == QLatin1String("KRA")) ||
(suffix == QLatin1String("HEIC")) ||
(suffix == QLatin1String("HEIF")) ||
mimeName.startsWith(QLatin1String("image/"))))
QString suffix = srcInfo.suffix().toUpper();
QMimeDatabase mimeDB;
QString mimeType(mimeDB.mimeTypeForUrl(d->srcUrl).name());
if (d->settings.changeImageProperties &&
(
mimeType.startsWith(QLatin1String("image/")) ||
(suffix == QLatin1String("PGF")) ||
(suffix == QLatin1String("KRA")) ||
(suffix == QLatin1String("HEIC")) ||
(suffix == QLatin1String("HEIF"))
)
)
{
ok = imageResize(d->srcUrl.toLocalFile(), dest.toLocalFile());
}
......
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