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

Added computation of best perfectWidth with kmeans algo #210

Merged
merged 2 commits into from Apr 21, 2022

Conversation

welcoMattic
Copy link
Contributor

@welcoMattic welcoMattic commented Sep 17, 2020

This PR attempts to bring the computation of perfectWidth (= ideal image width depending on the viewport popularity) with k-means algo.

It seems working for a testing project, but I'm not 100% sure of this.

Ref #14

@nhoizey
Copy link
Member

nhoizey commented Apr 19, 2022

@welcoMattic now that I managed to upgrade all dependencies to current versions (apart from csv-parse: #391 ), could you try to update your PR?

There are many conflicts in package files, I'm not sure own to deal with this without breaking things. 😞

Thanks

@welcoMattic
Copy link
Contributor Author

Hi @nhoizey, the branch is rebased. TBH, I don't remember very well how this works, but I fixed the tests.

@nhoizey
Copy link
Member

nhoizey commented Apr 20, 2022

@welcoMattic thanks! 🙏

I'll try to check and test this week.

@nhoizey nhoizey added the enhancement New feature or request label Apr 20, 2022
@nhoizey
Copy link
Member

nhoizey commented Apr 21, 2022

@welcoMattic I just checked, I get a result that looks fine! 👍

I will merge the PR, as it will be at least a good start, and we'll be able to fine tune after.

Thanks a lot, and sorry again for the way too long delay to merge this. 🙏

@nhoizey nhoizey merged commit 64cec4b into cleverage:master Apr 21, 2022
@welcoMattic welcoMattic deleted the srcset branch April 22, 2022 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants