Skip to content

Commit

Permalink
[ADD] 확장자명 대소문자 관련 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
C4NU committed Sep 6, 2023
1 parent ecac538 commit 7b7f490
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,8 +78,9 @@ def ConvertExifImage(self, filePath, savePath, saveName, fileFormatOpt):

def SearchFileFormat(self, filePath):
fileFormat = os.path.splitext(filePath)[1]
fileFormat = fileFormat.lower()

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

0 comments on commit 7b7f490

Please sign in to comment.