gulp-jpeg-2000

1.1.4 • Public • Published

Coverage Status NPM Version

gulp-jpeg-2000

A gulp plugin for converting images to JPEG 2000 (JP2) using ImageMagick

Installation

Install with yarn or npm:

$ yarn add gulp-jpeg-2000 -D
$ npm i gulp-jpeg-2000 -D

ImageMagick

Make sure you have ImageMagick with the legacy tools installed on your system. This plugin uses ImageMagick's legacy command $ convert that was changed to $ magick convert in version 7.

macOS

Using Homebrew:

$ brew install imagemagick

Run $ convert -version to ensure the version you've installed includes the legacy command. If you get an error from this command, try $ brew install imagemagick@6.

Ubuntu

Run $ convert -version to see if ImageMagick is already installed. If not, use apt:

$ apt install imagemagick

Windows

Download ImageMagick. Check "install legacy tools" when installing. Run $ convert -version to ensure the legacy command was sym linked.

Example

var gulp = require('gulp');
var jp2 = require('gulp-jpeg-2000');

function convertJP2() {
  return gulp.src('src/images/**/*.{jpg,jpeg,png}')
    .pipe(jp2())
    .pipe(gulp.dest('dist/images'));
}

License

MIT © Courtney Pattison

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    13
    • latest

Version History

Package Sidebar

Install

npm i gulp-jpeg-2000

Weekly Downloads

13

Version

1.1.4

License

MIT

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • courtneypattison