retina2common

An simple tool which transform retina screen image to common screen image. It decreases image size and it more adaptive in common screen.


Keywords
retina, screen, common, decrease, images, png, jpg, jpeg, gif
License
MIT
Install
npm install retina2common@0.1.2

Documentation

retina2common

retina2common is a tool for reduce retina screen image by half.

Installation

    $ [sudo] npm install retina2common -g

Usage

    retina2common [file | directory]

Options

1. -o, --output    the path to save
2. -h, --help  print the help page
3. -v, --version  print program version

Api

var Retina2Common = require('retina2common');
var opt = {
    input: [],
    output: '',
    matchRules: [
        '*.jpeg',
        '*.jpg',
        '*.png',
        '*.gif'
    ],
    onComplete: function () {}
};

var r2c = new Retina2Common();
r2c.process(opt);