Pass mimetype when input is Buffer#174
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 |
|
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 theurlargument:And this is cool, and sound coherent when working in
node.But in this scenario I found that the second argument
typeis 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/distwith bundled files.packagessource in the meanwhile (otherwise, some projects are broken)Let me know in any case and thanks again for this great Library!