An open API service indexing awesome lists of open source software.

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

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}) | |