Commit 8e892c4f authored by Colin Jermain's avatar Colin Jermain
Browse files

Allowing all supported extensions to be read in the directory

parent dec4885e
...@@ -1040,7 +1040,7 @@ class MainWindow(QMainWindow, WindowMixin): ...@@ -1040,7 +1040,7 @@ class MainWindow(QMainWindow, WindowMixin):
self.loadFile(filename) self.loadFile(filename)
def scanAllImages(self, folderPath): def scanAllImages(self, folderPath):
extensions = ['.jpeg', '.jpg', '.png', '.bmp'] extensions = ['.%s' % fmt.data().decode("ascii").lower() for fmt in QImageReader.supportedImageFormats()]
images = [] images = []
for root, dirs, files in os.walk(folderPath): for root, dirs, files in os.walk(folderPath):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment