Merge pull request #746 from jeffski/decide-content

Determine file type based on content, not extension
This commit is contained in:
Jonathan Thomas
2021-11-10 22:16:01 -06:00
committed by GitHub

View File

@@ -67,6 +67,7 @@ void QtImageReader::Open()
image = std::make_shared<QImage>();
QImageReader imgReader( path );
imgReader.setAutoTransform( true );
imgReader.setDecideFormatFromContent( true );
loaded = imgReader.read(image.get());
}