Skip to content

Commit

Permalink
Merge pull request #20 from ChaitanyaNaykodi-MSFT/patch-1
Browse files Browse the repository at this point in the history
Convert to lower case in switch function to cover edge cases.
  • Loading branch information
ggailey777 authored Sep 15, 2020
2 parents c2a5d34 + 25760dc commit 7ae0a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageFunctions/Thumbnail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private static IImageEncoder GetEncoder(string extension)

if (isSupported)
{
switch (extension)
switch (extension.ToLower())
{
case "png":
encoder = new PngEncoder();
Expand Down

0 comments on commit 7ae0a23

Please sign in to comment.