Skip to content

Check type of image input #178

@Hammy27

Description

@Hammy27

Usecase: I use your wrapper for on the fly profile-picture processing (make a thumbnail of users face while at the same time making sure they only upload images with a face on it) in Django. I therefore pass the image as a numpy array.

Problem: If one does not provide the array as a PIL Image array colors are kind of inverted.

Solution: I post-process the resulting image with an inverse version of your gbr_to_rgb function.

Request: please check the type of the input array and let it decide if color-reversion has to be applied.

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