Allowing all supported extensions to be read in the directory
This commit is contained in:
+1
-1
@@ -1040,7 +1040,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):
|
||||
|
||||
Reference in New Issue
Block a user