Skip to content
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

Add Buffer support to the default exported function #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valentindusollier
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant