(path)
| 46 | |
| 47 | |
| 48 | def pil_loader(path): |
| 49 | # open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835) |
| 50 | with open(path, 'rb') as f: |
| 51 | img = Image.open(f) |
| 52 | return img.convert('RGB') |
| 53 | |
| 54 | |
| 55 | def default_loader(path): |
no outgoing calls
no test coverage detected