-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Is there any way to select a region of an image to sample? #70
Comments
Mark this as a feature request. |
In Node.js, you could use one of these:
In the browser you could use canvas (with |
One solution for this would be to crop the image first using a library like those mentioned by @1j01. However, we don't want to prevent asking for info. Marking as feature request, we'll come back to this after finishing work on bugs and documenting and cleaning up the monorepo work we've done |
Since this can easily be solved in application code (as explained above), maybe it could be closed? (or moved to discussions, though you'd have to enable that for this repo first). By closing some old issues we reduce the list of open issues to a more manageable set. Many open-source projects expand their scope too much, and become difficult to maintain. It's usually better to keep the scope smaller, making it easier to maintain. |
Marking this as closed, since it should be done ahead-of-time in another package as mentioned previously |
I would like to specify the region in pixels to sample in eg (x, y, width, height) of a square, then I would the dominant color for that region?
The text was updated successfully, but these errors were encountered: