@kolserdav/imgresize
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Resize image cli node script

Created image previews for big image

Installation

Global

npm i -g @kolserdav/imgresize

Local

npm i --save-dev @kolserdav/imgresize

Run

Global

imgresize --path resources/test.png  --out  tmp/test

Local

  • Add to package.json the script:
"scripts": {
  "..."
  "imgresize": "imgresize"
  "..."
}
  • Run command:
npm run imgresize --path resources/test.png  --out  tmp/test

Optional config

Add imgresize property to package.json file:

"imgresize": { 
    "full": null,
    "desktop": 1920,
    "mobile": 760
  },

Will be create every image with custom sizes.

/@kolserdav/imgresize/

    Package Sidebar

    Install

    npm i @kolserdav/imgresize

    Weekly Downloads

    0

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • kolserdav