https://github.com/markmur/img-scale
Super simple image resizer CLI
https://github.com/markmur/img-scale
Last synced: about 1 month ago
JSON representation
Super simple image resizer CLI
- Host: GitHub
- URL: https://github.com/markmur/img-scale
- Owner: markmur
- License: mit
- Created: 2018-03-04T22:27:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T14:26:12.000Z (about 8 years ago)
- Last Synced: 2025-02-28T23:47:08.041Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# img-scale
A super simple image resizing CLI tool that uses the amazing [Sharp](https://github.com/lovell/sharp) under the hood.
### Installation
```bash
npm install -g img-scale
```
### Usage
```bash
img-scale "my_image.png" --width=1600 --format=jpeg --output="resized"
```
#### Arguments
| arg | description | required |
| ------- | --------------------------------------------------------------------- | -------: |
| default | Path to the image to resize | yes |
| width | The desired width of the image | yes |
| format | png, jpeg, tiff, webp, raw | |
| output | The filename for the resized image (defaults to {name}.resized.{ext}) | |