3.0.0 • Published 10 months ago

@kolserdav/imgresize v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.

3.0.0

10 months ago

2.0.0

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago