imagemin-manager

0.1.2 • Public • Published

imagemin-manager

declarative use of imagemin \o/.

Features:

  • image processing powered by imagemin
  • image preprocessing powered by jimp
  • will skip files, when the source and the config file are older then the target

Install

npm install --save-dev imagemin-manager

Usage

// imagemin.config.js
module.exports = { 
  from: ["resources"],
  to: "deploy/resources",
  process: {
    ico: "copy", // will match files with /.ico$/
    jpg: require("imagemin-guetzli")({quality: 87})
  }
  preprocess: {// see jimp for available commands
    jpg: [
      ["resize","AUTO",400]
    ]
  }
}
# call in terminal:
imagemin-manager
// or use a task in your package.json
...
  "scripts": {
    ...
    "deploy:imagemin": "imagemin-manager"
    ...
  }
...

License

Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i imagemin-manager

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • paulpflug