package
Gulp task for processing images
npm install gulp-image-processGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A Gulp task for processing images base on sharp for its speed, features and easiness of deployement.
npm install gulp gulp-image-process --save-dev'use strict'
const imageProcess = require('gulp-image-process')
const gulp = require('gulp')
const path = require('path')
gulp.task('images', () => {
let imageFolder = path.resolve('test', 'ressources', 'src', '*.jpg')
return gulp
.src(imageFolder)
.pipe(
imageProcess({
verboseLogging: true,
progressive:true
Type: String
Default: false
Force the output format. Possible values jpeg|png|webp
Type: Number
Default: 100
Quality of the output image. From 0 to 100.
Type: Boolean
Default: false
Enable the verbose logging.
Type: Array<Number>
Default: false
Will perform multiple resize of the values passed in parameter. Resizes are made on the rendered images, for example it will resize the image with the watermark.
Type: Boolean
Default: false
Keep the EXIF file on the output file.
Type: Boolean
Default: false
Output using progressive scan. Only available for jpeg output.
Type: Boolean
Default: false
While resizing it will ignore the base ratio of the image with a crop.
Type: Object
Default: null
Type: String
Default: ''
Is Mandatory: True
Path of the watermark file.
Type: String
Default: ''
Is Mandatory: True
Position of the watermark on the image.
Possible values:
center
north
south
west
east
northwest
northeast
southwest
southeastLittle reminder:
northwest north northeast
\ | /
\ | /
west ---- center ---- east
/ | \
/ | \
southwest south southeast
Type: Number
Default: -1
Max Size in Percent of the watermark on the image. If default value is used, the watermark will get its original size.
Type: Number
Default: 0
Margin of the watermark from the border of the image. Applied to all coordinates. Similar of css attribute margin:<value>px;
Estimated unpacked size across 17 packages.
1.8 MB
Includes dependencies.
5 direct · 5 outdated
^2.4.1
6.0.1
^0.20.5
0.35.5
^2.0.3
5.0.12
^1.3.2
2.0.0
^1.0.1
2.0.1