Skip to content

How to Convert response.files to Standard PIL Format? #69

Open
@alantseone

Description

@alantseone

When working with the response.files object, we often encounter scenarios where we need to convert the image data to a standard PIL format for further processing or display. In the codebase, the schema/file.py provides a convenient method, show_image(), to display the image after converting it to PIL format. However, when attempting to use the get_image method, we encounter an AttributeError: 'File' object has no attribute 'get_image'. While the File object offers a save method, this is not what we are looking for, as we want value of PIL format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions