1

I'm reading all the image files from a folder. I want to specify different image types such as jpg, jpeg, png

My code:

for file in glob.glob("./Images/*.jpg"):

How could I add more types to this?

Thanks for the help in advance!

Monard
  • 425
  • 1
  • 5
  • 9
  • 2
    Does this answer your question? [Python glob multiple filetypes](https://stackoverflow.com/questions/4568580/python-glob-multiple-filetypes) – S3DEV Jul 12 '21 at 12:50

0 Answers0