Naivete Precedes Misrepresentation
Have ideas to improve npm?Join in the discussion! »

gulp-jpeg-xr

1.1.0 • Public • Published

Build Status Coverage Status NPM Version

gulp-jpeg-xr

A gulp plugin for converting images to JPEG XR (JXR) using nConvert

Installation

Install with yarn or npm:

$ 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

Install

npm i gulp-jpeg-xr

DownloadsWeekly Downloads

39

Version

1.1.0

License

MIT

Unpacked Size

7.31 kB

Total Files

4

Last publish

Collaborators

  • avatar