Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.05 KB

Image Processor CLI

A Command Line Interface (CLI) tool for removing backgrounds and upscaling images using the Picsart API.

Features

  • Remove Background: Automatically removes the background from images using the Picsart API.
  • Upscale Images: Enhances image quality by upscaling the image with various zoom levels.

Prerequisites

  • Node.js (v14 or higher)
  • NPM (comes with Node.js)
  • Picsart API Key: You can obtain an API key from Picsart API.

Installation

  1. Clone this repository:
    git clone https://github.com/eax-academy/cli-plugin
    cd image-processor-cli
  2. Install the dependencies:
    npm install

Usage

The image-processor CLI provides two primary commands:

  1. removebg: Remove background from an image.
  2. upscale: Upscale an image to improve quality.

1. Remove Background

To remove the background from an image:

node index.js removebg -i <input_image_path> -o <output_image_path_or_directory> --apikey <your_picsart_api_key>