# image-cli-tool

> Terminal application for image compression, image format conversion and image information

Latest version **2.6.0** (published 2023-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install image-cli-tool
pnpm add image-cli-tool
yarn add image-cli-tool
bun add image-cli-tool
```

Provides the command `img-cli`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.0 |
| Published | 2023-11-14 |
| First published | 2023-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | nishaYO |
| Maintainers | nisha-singhal |
| Keywords | image, image cli, image terminal, image processing, compression, conversion |

## Links

- npm: https://www.npmjs.com/package/image-cli-tool
- Repository: https://github.com/nishaYO/image-cli-tool
- Homepage: https://github.com/nishaYO/image-cli-tool#readme
- Issues: https://github.com/nishaYO/image-cli-tool/issues
- npm.io page: https://npm.io/package/image-cli-tool

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [sharp](https://npm.io/package/sharp.md) ^0.32.6
- [commander](https://npm.io/package/commander.md) ^11.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.6.0 (latest) — 2023-11-14
- 2.5.0 — 2023-11-14
- 2.4.0 — 2023-11-04
- 2.3.0 — 2023-11-02
- 2.2.0 — 2023-10-29
- 2.1.0 — 2023-10-29
- 2.0.0 — 2023-10-28
- 1.0.0 — 2023-10-20

## README

# Image-CLI-Tool 

[![npm version](https://img.shields.io/npm/v/image-cli-tool.svg)](https://www.npmjs.com/package/image-cli-tool)
[![npm total downloads](https://img.shields.io/npm/dt/image-cli-tool.svg)](https://www.npmjs.com/package/image-cli-tool)

An npm package to manipulate images using terminal.

# Installation

To install the image-cli-tool globally, use the following command:
```bash
npm install -g image-cli-tool
```

# Features of the image-cli-tool

- Compress an image
- Convert an image to another format
- Get image information
- Rotate Image by a specified angle

# Commands

## Image Compression

- `img-cli compress <input_file>`
  - **Example:**
    ```bash
    img-cli compress myimage.jpg
    ```

Default quality is 60%. 
- `img-cli compress <input_file> -q <quality>`
  - **Example:**
    ```bash
    img-cli compress myimage.jpg -q 80
    ```

# Image Conversion

- `img-cli convert <input_file.extension> <output_file.extension>`
- **Example:**
```bash
img-cli convert myimage.jpg myimage.png
```

# Get Image Information

- `img-cli info <input_file>`
- **Example:**
```bash
img-cli info myimage.jpg
```

 # Rotate an Image 

 - `img-cli rotate <input_file> <rotate_angle>`
 - **Example:**
 ```bash
 img-cli rotate myimage.jpg 90
 ```

---
_Source: https://npm.io/package/image-cli-tool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
