From 5e91cff3cdb0a85821ff4f04f2e57ad0203ed63f Mon Sep 17 00:00:00 2001 From: Yaron Pri-Gal Date: Mon, 5 Aug 2019 10:45:48 +0300 Subject: [PATCH] Fix uppercase issue Fixing issue when the file name extension is in uppercase like: "JPG". --- ImageFunctions/Thumbnail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageFunctions/Thumbnail.cs b/ImageFunctions/Thumbnail.cs index 7a0574d..f176da3 100644 --- a/ImageFunctions/Thumbnail.cs +++ b/ImageFunctions/Thumbnail.cs @@ -43,7 +43,7 @@ private static IImageEncoder GetEncoder(string extension) { IImageEncoder encoder = null; - extension = extension.Replace(".", ""); + extension = extension.Replace(".", "").ToLower(); var isSupported = Regex.IsMatch(extension, "gif|png|jpe?g", RegexOptions.IgnoreCase);