Thank you always for your help.
I cannot understand what the following code does.
What is the purpose of this definition?
Thank you in advance.
def pil_loader(path):
with open(path, ‘rb’) as f:
with Image.open(f) as img:
return img.convert(‘RGB’)