From 15bc7969526850fcaf6a1fc170255a54f5f9c8d9 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 7 Nov 2016 12:52:28 -0500 Subject: [PATCH] case insensative file extensions --- contrib/frontends/django/nntpchan/nntpchan/thumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/frontends/django/nntpchan/nntpchan/thumbnail.py b/contrib/frontends/django/nntpchan/nntpchan/thumbnail.py index c379550..f376658 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/thumbnail.py +++ b/contrib/frontends/django/nntpchan/nntpchan/thumbnail.py @@ -8,7 +8,7 @@ def generate(fname, tname, placeholder): """ generate thumbnail """ - ext = fname.split('.')[-1] + ext = fname.split('.')[-1].lower() cmd = None if ext in img_ext: cmd = [settings.CONVERT_PATH, '-thumbnail', '200', fname, tname]