You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
could you provide more details about your solution? Did you convert image input in gbr_to_rgb function as PIL Image array before converting to RGB?
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.
The text was updated successfully, but these errors were encountered: