JSPM

gulp-jimp-wrapper

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23354F
  • License MIT

Manipulates images using Jimp.

Package Exports

  • gulp-jimp-wrapper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-jimp-wrapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-jimp-wrapper

Manipulates images using Jimp.

npm Travis CI David License

This plugin is actively maintained with the help of Renovate.

Install

npm install --save-dev gulp-jimp-wrapper

Usage

const { task, src, dest } = require('gulp')
const jimp = require('gulp-jimp-wrapper')

task('jimp', () => {
  return src('img/*')
    .pipe(
      jimp(image =>
        image
          .resize(256, 256)
          .quality(60)
          .greyscale()
      )
    )
    .pipe(dest('dist/img'))
})

or you can

import jimp from 'gulp-jimp-wrapper'

Options

gulp-jimp-wrapper takes in a callback function in which methods of Jimp can be called. See Jimp#Methods for full documentation.

Currently this plugin does not support changing name or extention of the image. Be careful with the image.write() method.

License

MIT

Buy Me A Coffee