(path)
| 52 | |
| 53 | |
| 54 | def pil_loader(path): |
| 55 | # open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835) |
| 56 | with open(path, 'rb') as f: |
| 57 | with Image.open(f) as img: |
| 58 | return img.convert('RGB') |
| 59 | |
| 60 | |
| 61 | def accimage_loader(path): |
no test coverage detected