Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nishayo/image-cli-tool

an npm package to manipulate images using command line interface.
https://github.com/nishayo/image-cli-tool

images npm-package terminal-app

Last synced: about 1 month ago
JSON representation

an npm package to manipulate images using command line interface.

Awesome Lists containing this project

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 `
- **Example:**
```bash
img-cli compress myimage.jpg
```

Default quality is 60%.
- `img-cli compress -q `
- **Example:**
```bash
img-cli compress myimage.jpg -q 80
```

# Image Conversion

- `img-cli convert `
- **Example:**
```bash
img-cli convert myimage.jpg myimage.png
```

# Get Image Information

- `img-cli info `
- **Example:**
```bash
img-cli info myimage.jpg
```

# Rotate an Image

- `img-cli rotate `
- **Example:**
```bash
img-cli rotate myimage.jpg 90
```