Skip to content

sambacha/iconograpgy-optimize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iconography-optimize

designed for lint-staged usage with sensible defaults

Overview

Automatically optimize images on submission

Installation

npm i --save-dev iconography-optimize

Usage

  1. iconography-optimize 1.png 2.png, Replacement of original position
  2. iconography-optimize -T ./images , Replace the original location in the folder
  3. iconography-optimize -T ./images -O ./newImages/, Output to new directory
  4. iconography-optimize -O ./newImages/ 1.png 2.png, Output to new directory
  5. use width lint-staged
"lint-staged": {
    "*.{png,jpg,webp}": ["iconography-optimize", "git add"]
}

Other formats are not supported at the moment(gif), Please change JPEG to jpg

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published