Hi and thanks for a great book!
I just have an issue opening the image after the filter is applied and I try to run the Jupyter commands.
The response from the post action is fine (below), so there must be something with the filters code. Hope someone can help?
<bound method Response.raise_for_status of <Response [200]>>
The following error is returned
`---------------------------------------------------------------------------
UnidentifiedImageError Traceback (most recent call last)
in
2 import io
3
----> 4 image = Image.open(io.BytesIO(response.content))
5 image.save("response,jpg", "JPEG")
6
C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py in open(fp, mode)
2860 warnings.warn(message)
2861 raise UnidentifiedImageError(
-> 2862 "cannot identify image file %r" % (filename if filename else fp)
2863 )
2864
UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000002AE80FDAB28>`
Hi and thanks for a great book!
I just have an issue opening the image after the filter is applied and I try to run the Jupyter commands.
The response from the post action is fine (below), so there must be something with the filters code. Hope someone can help?
<bound method Response.raise_for_status of <Response [200]>>The following error is returned
`---------------------------------------------------------------------------
UnidentifiedImageError Traceback (most recent call last)
in
2 import io
3
----> 4 image = Image.open(io.BytesIO(response.content))
5 image.save("response,jpg", "JPEG")
6
C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py in open(fp, mode)
2860 warnings.warn(message)
2861 raise UnidentifiedImageError(
-> 2862 "cannot identify image file %r" % (filename if filename else fp)
2863 )
2864
UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000002AE80FDAB28>`