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

Does not work for tiny images #29

Open
JakubFojtik opened this issue Jun 3, 2019 · 1 comment
Open

Does not work for tiny images #29

JakubFojtik opened this issue Jun 3, 2019 · 1 comment

Comments

@JakubFojtik
Copy link

I am trying to get colors of images whose one dimension is 1px wide.
For a 1x1px image nothing is sampled.
For a 7x1px image it nondeterministicaly fails to sample ~50% of the time.

Is there an option to make it work for tiny images? Or at least to add determinism?
Or was this never designed to work with 1px wide images?

@leeoniya
Copy link
Owner

leeoniya commented Jun 5, 2019

try setting method: 1, which just does linear scanning (and skips the image partitioning into boxSize chunks and requiring >= same boxPxls to be present in each).

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