image-similarity icon indicating copy to clipboard operation
image-similarity copied to clipboard

Add Buffer support to the default exported function

Open valentindusollier opened this issue 3 years ago • 0 comments

Hi,

Thank you for your library 😉

I added support for Buffer to the default exported function. Most library which manipulate images allows to get buffer from their image instances, therefore you can use your function directly with these buffers without having to save the images on the disk:

imageSimilarity(bufferedImage1, bufferedImage2)

You can also use path and buffer in the same function call.

I translated the function rejection in English and let the Chinese version. I had to use Google Translation to add another promise rejection. Feels free to edit it. I did't change the Readme because it is only in Chinese.

valentindusollier avatar Sep 16 '21 16:09 valentindusollier