JSPM

gulp-color-to-alpha

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q19511F
  • License MIT

Removes the color from the given images.

Package Exports

  • gulp-color-to-alpha

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-color-to-alpha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-color-to-alpha

This is a plugin for the Gulp building system which removes a given color from the given set of images (see color-to-alpha).

Usage

In order to remove a color #ffffff from all images in images, use the following calls:

  var alpha = require('gulp-color-to-alpha');
  
  gulp.src([
    'images/**/*'
  ])
  .pipe(alpha('#ffffff'))
  .pipe(gulp.dest('output'));

Color must be a hexdecimal string or an RGB array ([0,0,0]).

Running the unit tests

You will need to have the Mocha test framework installed.

mocha spec

Licence

MIT