Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-images-resizer with all npm packages installed. Try it out:

var gulpImagesResizer = require("gulp-images-resizer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-images-resizer v0.0.8

Gulp images resizer

gulp-images-resizer

Stats
Images resizer for gulp

Install

$ npm install gulp-images-resizer

Usage

let resizer = require('gulp-images-resizer');

gulp.task('resize', function() {
    return gulp.src('src/**/*.*')
    .pipe(resizer({
            format: "png",
            width: "50%"
        }))
    .pipe(gulp.dest('dest/'));
});

Available options

  • verbose - log file processing options, each image as processed. Default: false
  • format - fromat of output files (png, jpg, gif, bmp or *). Default: *
  • width - width of output images (fixed, percentage or -1 for auto). Default: -1
  • height - height of output images (fixed, percentage or -1 for auto). Default: -1
  • noCrop - disable the crop feature. If true it will choose the max size between height/width. Default: false
  • quality - quality of output images (from 0 to 100). Default: 100
  • tinify - tinify images using TinyPNG. Default: false
  • tinifyKey - TinyPNG key. Default: ""

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free