GithubHelp home page GithubHelp logo

whobutsb / image-compress Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 121 KB

Compress a directory of JPEG images quickily with mozjpeg

License: MIT License

JavaScript 100.00%
image-compression node node-cli compress-jpeg mozjpeg

image-compress's Introduction

Image Compress

Compress a directory of JPEG images quickly using mozjpeg.

Installation

$ git clone https://github.com/whobutsb/image-compress.git
$ cd image-compress
$ npm link

Usage

$ imagecom -h

Usage: compress [options] <directory>

Compress images quickily.

Arguments:
  directory                   Directory of images to compress.

Options:
  -d --delete                 Delete the images after compressed.
  -q --quality <integer>      JPEG Quality. (default: 70)
  -c --concurrency <integer>  The number of concurrent images to compress. (default: 8)
  -p --prefix <string>        Add a prefix to the compressed files.
  -h, --help                  display help for command

Example Command

$ imagecom /path/to/images -d -c 8 -p min- 

Contributing

  • Fork the repository.
  • Create a feature branch git checkout -b new-feature
  • Add your changes git add .
  • Commit your changes git commit -am 'My new feature'
  • Push to your branch git push origin new-feature
  • Submit a pull request

Future Updates

  • Add Tests
  • Add support for PNG
  • Add support for GIF
  • Add support for single images
  • Add support for output directory
  • Add support for suffix of compressed images

License

MIT License @ Steve Barbera

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.