-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass mimetype when input is Buffer #174
base: master
Are you sure you want to change the base?
Conversation
Since pass a Buffer into getColor() need to wait until [this PR](lokesh/color-thief#174) will be merged
Any update on when this pull request can be merged and released? This update would be immensely helpful. |
same issue (I think), I get I made it working for me with the follow patch (dist only) and pass it as
|
A vote from me. I'm having to fork the library because this is missing from the current code base. |
You could use https://www.npmjs.com/package/patch-package if you don't want to fork, like I did for my patch above |
Bump |
any news when this is going to get merged ? |
Bump |
Bump. I already have the image in a Buffer after doing processing through sharp. I'd rather not write it to a temp file just so it can be read back. |
Bump |
2 similar comments
Bump |
Bump |
any update? |
Please merge, we need this! |
Can someone merge this damn PR |
First, thanks for this great Library!
Working with this cool Library (congrats and thanks!) in
node.js
, in particular making responsimage I found that theimage
(input) value could be not only a path string to the image but also aBuffer
, since theurl
argument:And this is cool, and sound coherent when working in
node
.But in this scenario I found that the second argument
type
is needed:So made this PR to fix that part, adding the relative test.
Keep in mind that I didn't include theI added this folder to let use my repo as the/dist
with bundled files.packages
source in the meanwhile (otherwise, some projects are broken)Let me know in any case and thanks again for this great Library!