Commit 8b2309a3 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make it possible to load bmp images with the suffix in all CAPS

parent 5faf74b0
......@@ -52,12 +52,8 @@ KisQImageIOImport::~KisQImageIOImport()
KisImportExportFilter::ConversionStatus KisQImageIOImport::convert(KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP /*configuration*/)
QFileInfo fi(filename());
if (!QImageReader::supportedImageFormats().contains(fi.suffix().toLatin1())) {
return KisImportExportFilter::InvalidFormat;
QImage img;
if (!img.loadFromData(io->readAll(), fi.suffix().toLatin1())) {
if (!img.loadFromData(io->readAll(), fi.suffix().toLower().toLatin1())) {
return KisImportExportFilter::InvalidFormat;
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