This package has been deprecated

Author message:

no longer needed

madeo-image-optimizer

1.0.9 • Public • Published

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...

Readme

Keywords

none

Package Sidebar

Install

npm i madeo-image-optimizer

Weekly Downloads

11

Version

1.0.9

License

MIT

Unpacked Size

3.31 kB

Total Files

3

Last publish

Collaborators

  • npm
  • madeo