gulp-sqip

0.1.2 • Public • Published

gulp-sqip

A simple plugin for generate svg placeholders from images.

This plugin used sqip (see https://github.com/technopagan/sqip)

Overview

SVG-Based Image Placeholder

Demo results

Requirements

Golang (https://golang.org/doc/install)
Primitive (https://github.com/fogleman/primitive)

Installation

npm install gulp-sqip

Usage

const gsqip = require('gulp-sqip');
gulp.task('generate-svg-placeholders', function(){
    gulp.src(['./img/test.png', './img/test.jpeg', './img/test.jpg'])
    .pipe(gsqip({
        numberOfPrimitives: 12 //optional parameter (default: 22)
    }))
    .pipe(gulp.dest('./img'));
});

Contributing

Contributions are always welcome, no matter how large or small.

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Credits

Tobias Baldauf (https://github.com/technopagan)

Package Sidebar

Install

npm i gulp-sqip

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

551 kB

Total Files

5

Last publish

Collaborators

  • mbalabash