Upload own image fail. OSError: Error handling image

Hi

I followed this Failing to complete training in Lesson 1 for own data

removed the problematic pictures and the code runs. However, how do I inspect the image (without seeing the image) so that I know what kind of images are allowed etc.
I wouldn’t want to have to throw away bad images everytime this comes up.How can I inspect the images?