def engine_load_image(self, original):
        image = self._Image.open(BytesIO(original.open().read()))
        try:
            image.load()
        except (IOError, __HOLE__) as e:
            raise ThumbnailError('Could not load image', exception=e)
        return image
dataset/ETHPy150Open python-thumbnails/python-thumbnails/thumbnails/engines/pillow_engine.py/PillowEngine.engine_load_image