Coder Social home page Coder Social logo

calinou / resemble-image-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 319 KB

Command-line interface for resemble-image – generate fallback CSS gradients for images

License: MIT License

JavaScript 100.00%
command-line command-line-tool resemble-image css-gradient performance web-performance perceived-performance

resemble-image-cli's Introduction

resemble-image-cli

Command-line interface for resemble-image.

Use cases

  • Generate fallback CSS gradients for images. This can be used to improve perceived performance on slower connections. See this article for examples.

Installation

Dependencies

Installing the package

Enter one of the following commands in a terminal:

# Using npm
npm install -g resemble-image-cli
# Using yarn
yarn global add resemble-image-cli

Usage

See the command-line help:

Usage: resemble-image <image> [<images...>]

Example output (the order isn't guaranteed, as it runs in parallel):

$ resemble-image 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg
2.jpg   linear-gradient(90deg, #718aaa 2%, #7d90a2 22%, #727e87 30%, #6e7063 84%)
1.jpg   linear-gradient(90deg, #19180f 10%, #353b2c 26%, #567386 60%, #567388 85%)
4.jpg   linear-gradient(90deg, #3b393c 13%, #3c393c 37%, #3b393c 49%, #3b393c 68%)
5.jpg   linear-gradient(90deg, #070707 16%, #11110f 37%, #1e1e19 58%, #070707 91%)
6.jpg   linear-gradient(90deg, #060606 13%, #0c0907 46%, #060606 66%, #131212 92%)
3.jpg   linear-gradient(90deg, #617085 15%, #606f85 52%, #72849d 86%, #758dad 92%)

License

Copyright © 2019 Hugo Locurcio and contributors

Unless otherwise specified, files in this repository are licensed under the MIT license; see LICENSE.md for more information.

resemble-image-cli's People

Contributors

calinou avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.