Skip to content

Fix image extension filtering to support case-insensitive matches#28

Open
shreyasi12345 wants to merge 3 commits intoTaeyoung96:masterfrom
shreyasi12345:fix-image-extension-filter
Open

Fix image extension filtering to support case-insensitive matches#28
shreyasi12345 wants to merge 3 commits intoTaeyoung96:masterfrom
shreyasi12345:fix-image-extension-filter

Conversation

@shreyasi12345
Copy link

Summary

This PR updates the image file loading logic to ensure files with extensions like .JPG, .Png, etc., are correctly included. Previously, only lowercase extensions were supported.

Changes

  • Replaced multiple rglob() calls with a unified search and filter using .suffix.lower().
  • Ensures robust and case-insensitive extension matching.

Motivation

This makes the code more reliable across different systems and file sources where file extensions may not be consistently lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments