https://github.com/odrick/gulp-images-resizer
Gulp images resizer module
https://github.com/odrick/gulp-images-resizer
Last synced: 5 months ago
JSON representation
Gulp images resizer module
- Host: GitHub
- URL: https://github.com/odrick/gulp-images-resizer
- Owner: odrick
- License: mit
- Created: 2018-06-06T09:36:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T14:45:29.000Z (over 5 years ago)
- Last Synced: 2025-02-02T01:11:21.657Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-images-resizer
[](https://www.npmjs.com/package/gulp-images-resizer) \
Images resizer for gulp# Install
$ npm install gulp-images-resizer# Usage
```js
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](https://tinypng.com/). Default: **false**
* `tinifyKey` - [TinyPNG key](https://tinypng.com/developers). Default: **""**