-
Notifications
You must be signed in to change notification settings - Fork 172
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
why Why did I use getImageData() for more than 1 minute? #302
Comments
Same issue, it takes about a minute for getImageData to resolve with a 300x600 canvas |
I have two solutions to solve it
|
this function faster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use getImageData(), I have to wait for a long time to get data, which is unbearable. Why is this? ImgWH=360,pixelRatio=3 and the image pixel is 360 * 360
`const wh = imgWH * pixelRatio;
....
}`
The text was updated successfully, but these errors were encountered: