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
Firstly, I love this library and we use it throughout our product. That said, we often use the feature to add a background color to the "frame" of an image if it doesn't fit its bounds. In most cases, we want to disable this behavior and simply render a white background if the image has transparency as otherwise this can produce strange results.
Ideally, for performance reasons, we don't double sample the image to determine transparency and color. Would it make sense if color thief could returned something like hasTransparency with the color palette, or would you consider that out of the scope of this project? Thanks!
The text was updated successfully, but these errors were encountered:
Firstly, I love this library and we use it throughout our product. That said, we often use the feature to add a background color to the "frame" of an image if it doesn't fit its bounds. In most cases, we want to disable this behavior and simply render a white background if the image has transparency as otherwise this can produce strange results.
Ideally, for performance reasons, we don't double sample the image to determine transparency and color. Would it make sense if color thief could returned something like
hasTransparency
with the color palette, or would you consider that out of the scope of this project? Thanks!The text was updated successfully, but these errors were encountered: