From 5553e7fabe494035c175f2936fbe0ba2fddb053d Mon Sep 17 00:00:00 2001 From: Huluti Date: Sat, 23 Feb 2019 20:58:02 +0100 Subject: [PATCH] Fix a bug introcuded in 13f43bf: allow extensions even in upper case --- trimage/trimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trimage/trimage.py b/trimage/trimage.py index a07fa68..a32a1d5 100644 --- a/trimage/trimage.py +++ b/trimage/trimage.py @@ -347,7 +347,7 @@ class Image: self.reset() self.fullpath = fullpath if path.isfile(self.fullpath) and access(self.fullpath, W_OK): - self.filetype = path.splitext(self.fullpath)[1][1:] + self.filetype = path.splitext(self.fullpath)[1][1:].lower() if self.filetype == "jpg": self.filetype = "jpeg" if self.filetype in ["jpeg", "png"]: