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
Sometimes you already have the image as a PIL Image object and re-reading as another Image is a wasted of memory. Currently, I'm re-implementing ColorThief like this:
# Overrides init of ColorThief to pass in the buffer from memoryclassColorThiefFromImage(ColorThief):
def__init__(self, image):
self.image=image
The text was updated successfully, but these errors were encountered:
Sometimes you already have the image as a PIL
Image
object and re-reading as anotherImage
is a wasted of memory. Currently, I'm re-implementingColorThief
like this:The text was updated successfully, but these errors were encountered: