:bird: The uncomplicated image resizing pipeline.
The uncomplicated image resizing pipeline.
Features
•
Usage
•
Development
•
License
Usage: pyper [options]
Options:
-v, --version output the current version
--verbose output debugging
-h, --help display help for command
Create a .pyper.json
file in the folder you want to run pyper from.
Here’s one that creates three different versions of each of the images in the images
folder.
[
{
"input": "images/*",
"outputs": [
{
"path": "output/{basepath}/{filename}-35{extension}",
"width": 35,
"height": 35
},
{
"path": "output/{basepath}/{filename}-100.webp",
"format": "webp",
"width": 100,
"height": 100
},
{
"path": "output/{basepath}/{filename}-100{extension}",
"width": 100,
"height": 100,
"options": {
"quality": 10
}
}
]
}
]
Pyper is run as the CLI command pyper
.
npm install
npm link
You should then be able to run this in another folder:
pyper
MIT