Responsive image generator.
-
Install VIPS vips
brew install homebrew/science/vips --with-webp --with-graphicsmagick --without-check
- Go for a coffee...
-
npm install
{
"quality": 80,
"pngcompression": 9,
"paths" : {
"source" : "src/**/*",
"destination" : "output"
},
"suffix" :{
"small": "-small",
"small2x": "-small2x",
"medium": "-medium",
"medium2x": "-medium2x",
"large": "-large",
"large2x": "-large2x"
},
"sizes" :{
"small": 736,
"small2x": 1200,
"medium": 1050,
"medium2x": 2100,
"large": 1600,
"large2x": 3000
}
}
Dependencies (included in package.json)
Pre-requisites
Try:
- brew doctor
- brew update
- Wiwi: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting