XadillaX / thmclrx

:art: A theme color extractor module for Node.js.
http://blog.xcoder.in/thmclrx-stress-tester/result/
MIT License
205 stars 21 forks source link

Could input be a Stream or Buffer instead of file path? #5

Closed chinajuanbob closed 9 years ago

chinajuanbob commented 9 years ago

I find huge memory usage when handle with big photo, like 3000 * 2000, so thinking of resize or reduce color of the image on fly first, then use thmclrx. If not, any plan for this? Thanks a lot!

XadillaX commented 9 years ago

In Huaban, we resized the picture in the business logic layer.

If the input is stream, the algorithm may a bit hard to impl.

chinajuanbob commented 9 years ago

Got it, I suggest add a note for the memory usage with image size, kind of a limitation from my perspective. Thanks!