Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Add support to load image from io.BytesIO #29

@ychfan

Description

@ychfan

PIL could open image directly from io.BytesIO, like

import io
image_buffer = io.BytesIO()
image_buffer.write(image_string)
image_buffer.seek(0)
image = Image.open(image_buffer)

This is helpful for loading image from a database. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions