It would be good to add some check in case there are non-image files in an image directory.
Describe the solution you'd like
A simple filter would suffice, e.g.
Describe alternatives you've considered
A: Do nothing - potential for tool to fail while processing data, which could waste user's time
B: Filter at the DataFrame level - best not to propagate errors downstream
Additional context
See client._read_image_directory.
It would be good to add some check in case there are non-image files in an image directory.
Describe the solution you'd like
A simple filter would suffice, e.g.
Describe alternatives you've considered
A: Do nothing - potential for tool to fail while processing data, which could waste user's time
B: Filter at the DataFrame level - best not to propagate errors downstream
Additional context
See
client._read_image_directory.