Socket
Socket
Sign inDemoInstall

madeo-image-optimizer

Package Overview
Dependencies
622
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    madeo-image-optimizer

Tiny CLI image optimizer tool, for fast image conversion in development


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
42.1 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 02 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc