From 2025b3ffaa90e0321693046d115931b9ede10b16 Mon Sep 17 00:00:00 2001 From: MechTechnology <40597106+MechTechnology@users.noreply.github.com> Date: Mon, 21 Jun 2021 10:20:42 +0200 Subject: [PATCH] Adds input support for jfif - Supports new variation of jpg files [Kakao's New Format :/] --- SmartStitchGUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SmartStitchGUI.py b/SmartStitchGUI.py index 0cfa3a1..3cd05d1 100644 --- a/SmartStitchGUI.py +++ b/SmartStitchGUI.py @@ -41,7 +41,7 @@ def geticon(self, relative_path): # return os.path.join(base_path, relative_path) def SetupWindow(self): # Sets up Title and Logo - self.title('SmartStitch by MechTechnology [1.5]') + self.title('SmartStitch by MechTechnology [1.6]') self.iconbitmap(default=self.geticon("SmartStitchLogo.ico")) # Sets Window Size, centers it on Launch and Prevents Resize. @@ -174,7 +174,7 @@ def LoadImages(self): if len(files) == 0: return images for imgFile in files: - if imgFile.endswith(('.png', '.webp', '.jpg', '.jpeg', '.bmp', '.tiff', '.tga')): + if imgFile.endswith(('.png', '.webp', '.jpg', '.jpeg', '.jfif', '.bmp', '.tiff', '.tga')): imgPath = os.path.join(folder, imgFile) image = pil.open(imgPath) images.append(image)