(path)
| 27 | |
| 28 | |
| 29 | def pil_loader(path): |
| 30 | # open path as file to avoid ResourceWarning |
| 31 | # (https://github.com/python-pillow/Pillow/issues/835) |
| 32 | with open(path, 'rb') as f: |
| 33 | img = Image.open(f) |
| 34 | return img.convert('RGB') |
no outgoing calls
no test coverage detected