Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addresses limitations of detecting ImageFormat / ContainerFormat from the file extension #844

Merged

Conversation

elyoh
Copy link
Contributor

@elyoh elyoh commented Aug 27, 2024

Closes #799

Description

Ensures case insensitive comparison of the file extension and manually maps all supported file extensions supported by the build in container formats (BMP, JPEG, PNG, TIFF, WMP, DDS).

Additional context (optional)

Alternative approaches are possible, removing the need for hard coding any file extensions (see #799 (comment)). Such an approach is more involved and would be a better fit if it is planned to address #800.

Copy link
Owner

@Sergio0694 Sergio0694 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙂

@Sergio0694 Sergio0694 added the enhancement ✨ An improvement to existing APIs label Aug 28, 2024
@Sergio0694 Sergio0694 merged commit af9a4dd into Sergio0694:main Aug 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ An improvement to existing APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limitations of detecting ImageFormat / ContainerFormat from file extension
2 participants