From 25760dc6d23de4a264b1b6706cef7bfc82ec6370 Mon Sep 17 00:00:00 2001 From: ChaitanyaNaykodi-MSFT <67453298+ChaitanyaNaykodi-MSFT@users.noreply.github.com> Date: Mon, 14 Sep 2020 23:29:11 -0700 Subject: [PATCH] Convert to lower case in switch function to cover edge cases. If the image extension is in caps, the code will exit without resizing the image. --- ImageFunctions/Thumbnail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageFunctions/Thumbnail.cs b/ImageFunctions/Thumbnail.cs index 1623143..c69ba71 100644 --- a/ImageFunctions/Thumbnail.cs +++ b/ImageFunctions/Thumbnail.cs @@ -48,7 +48,7 @@ private static IImageEncoder GetEncoder(string extension) if (isSupported) { - switch (extension) + switch (extension.ToLower()) { case "png": encoder = new PngEncoder();