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:
commit
6c774267ec
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user