A simple plugin for generate svg placeholders from images.
This plugin used sqip (see https://github.com/technopagan/sqip)
SVG-Based Image Placeholder
Golang (https://golang.org/doc/install)
Primitive (https://github.com/fogleman/primitive)
npm install gulp-sqip
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'));
});
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.
Tobias Baldauf (https://github.com/technopagan)