gulp-jpeg-xr
v1.1.0
Published
A gulp plugin for converting images to JPEG XR (JXR) using nConvert
Downloads
33
Maintainers
Readme
gulp-jpeg-xr
A gulp plugin for converting images to JPEG XR (JXR) using nConvert
Installation
$ yarn add gulp-jpeg-xr -D
$ npm i gulp-jpeg-xr -D
nConvert
Download nConvert and install it on your system. On macOS, install nConvert by adding it to a directory in your $PATH:
$ mv ~/Downloads/NConvert/nconvert /usr/local/bin/
Usage
var gulp = require('gulp');
var jxr = require('gulp-jpeg-xr');
function convertJXR() {
return gulp.src('src/images/**/*.{jpg,jpeg,png}')
.pipe(jxr(['-truecolours', '-tile', '32']))
.pipe(gulp.dest('dist/images'));
}
API
jxr([options])
Run $ nconvert -help
to see the options. No spaces are allowed in the options array.
License
MIT © Courtney Pattison