diff --git a/photobash_images/photobash_images_docker.py b/photobash_images/photobash_images_docker.py index 6ece642..97d16a4 100644 --- a/photobash_images/photobash_images_docker.py +++ b/photobash_images/photobash_images_docker.py @@ -183,9 +183,10 @@ def getImagesFromDirectory(self): it = QDirIterator(self.directoryPath, QDirIterator.Subdirectories) + while(it.hasNext()): - if (".png" in it.filePath() or ".jpg" in it.filePath() or ".jpeg" in it.filePath()) and \ - (not ".png~" in it.filePath() and not ".jpg~" in it.filePath() and not ".jpeg~" in it.filePath()): + if (".webp" in it.filePath() or ".png" in it.filePath() or ".jpg" in it.filePath() or ".jpeg" in it.filePath()) and \ + (not ".webp~" in it.filePath() and not ".png~" in it.filePath() and not ".jpg~" in it.filePath() and not ".jpeg~" in it.filePath()): newImages.append(it.filePath()) it.next()