Skip to content

Images with an upper case extension throw errors #18

@smillerk2

Description

@smillerk2

The GetEncoder() function correctly checks for upper case extensions:

var isSupported = Regex.IsMatch(extension, "gif|png|jpe?g", RegexOptions.IgnoreCase);

However, the switch statement following does not so if the uploaded image is test.PNG then errors are reported:

No encoder support for: test.PNG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions