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

Demo example #14

Open
antn9x opened this issue Aug 17, 2023 · 1 comment
Open

Demo example #14

antn9x opened this issue Aug 17, 2023 · 1 comment

Comments

@antn9x
Copy link

antn9x commented Aug 17, 2023

Can we have example with data read from image? May be use Jimp

@mubaidr
Copy link
Owner

mubaidr commented Aug 17, 2023

As mentioned in readme, this library expects data in ImageData format, more information here: https://developer.mozilla.org/en-US/docs/Web/API/ImageData

using jimp:

image.bitmap.data; // a Buffer of the raw bitmap data
image.bitmap.width; // the width of the image
image.bitmap.height; // the height of the image

I will try to add an example using jimp/ sharp

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

No branches or pull requests

2 participants