Allowing all supported extensions to be read in the directory
This commit is contained in:
parent
dec4885e29
commit
8e892c4f25
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user