Skip to content

Commit

Permalink
added webp support
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Daniel Reis <[email protected]>
  • Loading branch information
veryprofessionaldodo committed Oct 22, 2021
1 parent 5fbc0a1 commit e9f9095
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions photobash_images/photobash_images_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e9f9095

Please sign in to comment.