3.0.0 • Published 2 years ago
@kolserdav/imgresize v3.0.0
Resize image cli node script
Created image previews for big image
Installation
Global
npm i -g @kolserdav/imgresizeLocal
npm i --save-dev @kolserdav/imgresizeRun
Global
imgresize --path resources/test.png --out tmp/testLocal
- Add to
package.jsonthe script:
"scripts": {
"..."
"imgresize": "imgresize"
"..."
}- Run command:
npm run imgresize --path resources/test.png --out tmp/testOptional config
Add imgresize property to package.json file:
"imgresize": {
"full": null,
"desktop": 1920,
"mobile": 760
},Will be create every image with custom sizes.