cleverage / daltons

a command-line tool that computes optimal image widths to put in srcset attributes of responsive images
https://cleverage.github.io/daltons/
MIT License
39 stars 5 forks source link
image images performance responsive-design responsive-images responsive-web-design webperf

Daltons

Travis build status Known Vulnerabilities License FOSSA Status GitHub stars

daltons is a command-line tool that computes optimal image widths to put in srcset attributes of responsive images.

Why do we need this tool?

We want to provide the best experience to our clients’ users, so optimizing web performance is one of our main concerns.

Using responsive images in every projects, we wanted to be able to make it as efficient as possible. The main difficulty is choosing the image widths we put in srcset attributes, because nothing in the standard tells us about this.

How does it work?

It takes 3 steps for daltons to find the best widths to put in the srcset attribute of a responsive image:

Learn more in the full documentation.

Usage

To install and run this application, you’ll need Node.js (which comes with npm) installed on your computer.

From your command line, install daltons as a global package:

npm i -g github:cleverage/daltons

Then run it with the -h option to get help:

npx daltons -h

Or see detailed options in the full documentation and look at examples and use cases.

Built with

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

FOSSA Status

Related projects