Merge pull request #249 from cjermain/supported_extensions

Allowing all supported extensions (TIFF in Qt 4.8, along with PPM, PBM, and PGM)
This commit is contained in:
darrenl 2018-03-10 10:02:01 -08:00 committed by GitHub
commit 6c774267ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1080,7 +1080,7 @@ class MainWindow(QMainWindow, WindowMixin):
self.loadFile(filename)
def scanAllImages(self, folderPath):
extensions = ['.jpeg', '.jpg', '.png', '.bmp']
extensions = ['.%s' % fmt.data().decode("ascii").lower() for fmt in QImageReader.supportedImageFormats()]
images = []
for root, dirs, files in os.walk(folderPath):