Skip to main content
import { IMGProcessingClient } from 'img-processing-sdk';

const client = new IMGProcessingClient({
    apiKey: process.env.IMG_PROCESSING_API_KEY,
});

Description

The IMGProcessingClient class is the main class of the IMG Processing SDK. It is a wrapper around http requests to the IMG Processing API, providing a simple and easy-to-use way to interact with the API using your programming language of choice. The client provides methods to interact with the API endpoints, such as creating, editing, and transforming images.

Constructor Props

The IMGProcessingClient constructor accepts the following named parameters:
apiKey
string
The API key to authenticate requests to the IMG Processing API.

Methods

The IMGProcessingClient class provides the methods are organized into the following categories:

Creation Methods

Create new images using different methods

Access Methods

Get images, make them public, or private

Transformation Methods

Apply transformations to images

Edition Methods

Edit images by adjusting their properties

Multi-Image Methods

Work with multiple images

Analysis Methods

Analyze images to extract information