Skip to content

Commit

Permalink
Fix to support equivalent image file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Jul 28, 2024
1 parent 23f41d9 commit d15ff23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pysollib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ def __init__(self):

IMAGE_EXTENSIONS = (".gif", ".ppm", ".png")
if 1 and os.name == "nt":
IMAGE_EXTENSIONS = (".png", ".gif", ".ppm", ".jpg",)
IMAGE_EXTENSIONS = (".png", ".gif", ".ppm", ".jpg", ".jpeg",)
pass

if Image:
IMAGE_EXTENSIONS = (".png", ".gif", ".jpg", ".ppm", ".bmp")
IMAGE_EXTENSIONS = (".png", ".gif", ".jpg", ".jpeg", ".ppm", ".bmp")

if TOOLKIT == 'kivy':
IMAGE_EXTENSIONS = (".png", ".bmp", ".ppm", ".jpg", ".tiff")
IMAGE_EXTENSIONS = (".png", ".bmp", ".ppm", ".jpg", ".jpeg", ".tif",
".tiff")

# ************************************************************************
# * DataLoader
Expand Down

0 comments on commit d15ff23

Please sign in to comment.