dr-js / imagemin-min

Like imagemin but batteries-included

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imagemin-min

i:npm i:ci i:size i:npm-dev

Like imagemin but batteries-included

currently support:

  • Debian 11 (x64/arm64)
  • Windows 10 (x64)
  • MacOS latest (x64)

currently bundled image optimizer:

  • jpg: MozJPEG (pre-built binary)
  • gif: Gifsicle (pre-built binary)
  • png: Pngquant (pre-built binary)
  • webp: cwebp (pre-built binary)
  • svg: SVGO (dist browser bundle)

CLI commands:

  • imagemin-min-in-place file.png file.svg file.webp ...: process each image file in-place (imagemin-min file.png file.svg file.webp ... also work)
  • imagemin-min-test-boot: test binary working on current platform
  • imagemin-min-trim-battery: drop binary for other platforms to save space (non-revert-able)
  • 📁 source
    • main source code
  • 📄 SPEC.md
    • list of all directly accessible codes, sort of API lockfile

Note: use a *nix platform to pack .tgz and publish to preserve correct file permission and keep the 755 file permission on executable binary

About

Like imagemin but batteries-included

License:MIT License


Languages

Language:JavaScript 100.0%