11 #include <QImageWriter> 
   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); });
 
   29 #if defined (Q_OS_MAC) && !defined (USE_UNIX_LAYOUT) 
   30         return qgetenv (
"LC_BUNDLE_DIRECT_LOAD") != 
"1";