17 if (filename.count (
'.') < 1)
20 const auto& ext = filename.section (
'.', -1, -1);
21 const auto& formats = QImageWriter::supportedImageFormats ();
22 return std::any_of (formats.begin (), formats.end (),
23 [&ext] (
const QByteArray& format)
24 { return !QString::compare (ext, format, Qt::CaseInsensitive); });