Skip to content

Commit

Permalink
[FIX] 파일 필터링 대소문자 구별 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
C4NU committed Sep 6, 2023
1 parent 5445e02 commit ecac538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebP_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def ConvertExifImage(self, filePath, savePath, saveName, fileFormatOpt):

def SearchFileFormat(self, filePath):
fileFormat = os.path.splitext(filePath)[1]
if(fileFormat == ".jpg" or fileFormat == ".jpeg" or fileFormat == ".png" or fileFormat == ".tiff"):

if(fileFormat == ".jpg" or fileFormat == ".JPG" or fileFormat == ".jpeg" or fileFormat == ".JPEG" or fileFormat == ".PNG" or fileFormat == ".png" or fileFormat == ".tiff"):
return True, fileFormat
else:
return False, None

0 comments on commit ecac538

Please sign in to comment.