Convert multi folder jpg file to webp format in one go with gulpConvert multi folder jpg file to webp format in one go with gulp
WebP is an image format developed and first released by Google in 2010. It supports encoding images in both lossless and lossy formats, making it a versatile format for any type of visual media, and a great alternative format to both PNG or JPEG.
Image format that supports lossy and lossless compression, as well as animation and alpha transparency.
- Pull Repository
- Update tasks.json
{
"webp-dest1": {
"sourcePath": "./dest/dest1",
"destPath": "./dest/webp",
"watchPath": "dest/dest1"
},
"webp-dest2": {
"sourcePath": "./dest/dest2",
"destPath": "./dest/dest2",
"watchPath": "dest/dest2"
}
}
npm run webp-convert
forever start -c "npm run webp-convert" index.js
Pull requests, feature ideas and bug reports are welcome
MIT