1.0.9 • Published 5 years ago
madeo-image-optimizer v1.0.9
madeo-image-optimizer
Tiny CLI image optimizer tool, for fast image conversion in development.
Please do not use this in production, it is still under-work
npm install madeo-image-optimizer --save-dev
Usage
Create the images source folder
srcImages/
put some images inside and run on the command line
optimizer-convert
you will find your compressed and re-sized images in the
optimizedImg/
Config
Override default config
You can override the default size and folder:
create a file called image-optimizer-config.js
and put it in the root folder.
Then inside the file copy this code
module.exports = {
md: //medium images size. Ex: 480, 720... Must be an integer
sm: //small images size. Ex: 320... Must be an integer
src: //your source folder
dest: //Your destination folder
};
Examples
Using the request module
This example uses request to...