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

v6 release #79

Merged
merged 21 commits into from
Dec 16, 2024
Merged

v6 release #79

merged 21 commits into from
Dec 16, 2024

Conversation

Kikobeats
Copy link
Member

No description provided.

benchmark/index.mjs Outdated Show resolved Hide resolved
src/index.js Outdated
const b = pixels[offset + 2]
const a = pixels[offset + 3]

if ((a === undefined || a >= 125) && !(r > 250 && g > 250 && b > 250)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this code excludes black and white pixels. Any reason why we're doing that?

image
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is interesting; it's in the original colorthief implementation
https://github.com/lokesh/color-thief/blob/master/src/color-thief-node.js#L17

@Kikobeats Kikobeats force-pushed the v6 branch 4 times, most recently from f12809a to b02c94c Compare December 13, 2024 22:47
@Kikobeats Kikobeats force-pushed the v6 branch 2 times, most recently from c740654 to 657feb2 Compare December 14, 2024 09:50
@Kikobeats Kikobeats marked this pull request as ready for review December 16, 2024 09:37
@Kikobeats Kikobeats force-pushed the v6 branch 3 times, most recently from cd3f349 to 9dd3f0f Compare December 16, 2024 10:03
@Kikobeats Kikobeats merged commit e5a9614 into master Dec 16, 2024
2 checks passed
@Kikobeats Kikobeats deleted the v6 branch December 16, 2024 10:13
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.

2 participants