Skip to content

Image.open() not working for URL #1

@irfanumar1994

Description

@irfanumar1994

url = "https://www.linkpicture.com/q/knots_SM.jpg"
image_data = Image.open(requests.get(url, stream=True).raw)

This does not worked for me and yield error "cannot identify image file <_io.BytesIO object at 0x7f9a16b12a98>"

I have tried other workaround mentioned here but that also not working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions