Closed bobloy closed 3 years ago
Passing a BytesIO object would be considered an instance of IOBase and therefore would not open it as an image.
Now, it will use Image.open on both strings and IOBase objects, but will accept PIL.Image objects as well in the else clause.
I was going to propose the same update
Sorry for late reply. merged this
version 0.5.1 has been released, on PyPI.
Passing a BytesIO object would be considered an instance of IOBase and therefore would not open it as an image.
Now, it will use Image.open on both strings and IOBase objects, but will accept PIL.Image objects as well in the else clause.