> ## Documentation Index
> Fetch the complete documentation index at: https://docs.condotta.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Image Tools

> Resize, crop, rotate, convert, compress, and transform images.

The Image Tools connector provides operations for image processing: resizing, cropping, format conversion, compression, and effects.

> [!NOTE]
>
> No connection required; this utility connector works out of the box.

All image inputs and outputs are **base64-encoded** strings.

## Tools

> [accordion] resize: Resize image
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **width** `number`
>
> Target width in pixels.
>
> **height** `number`
>
> Target height in pixels.
>
> **fit** `string` (default: inside)
>
> Resize strategy: `cover`, `contain`, `fill`, `inside`, or `outside`.
>
> **format** `string`
>
> Output format: `jpeg`, `png`, `webp`, or `avif`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "width": 800,
>   "height": 600,
>   "fit": "inside",
>   "format": "webp"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "width": 800,
>   "height": 533,
>   "format": "webp",
>   "image": "UklGRuoCAABXRUJQVlA4IN4CAABwEQ..."
> }
> ```

> [accordion] crop: Crop region
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **left** `number` *required*
>
> Left edge position (x).
>
> **top** `number` *required*
>
> Top edge position (y).
>
> **width** `number` *required*
>
> Crop width.
>
> **height** `number` *required*
>
> Crop height.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "left": 100,
>   "top": 50,
>   "width": 400,
>   "height": 300
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "width": 400,
>   "height": 300,
>   "image": "iVBORw0KGgoAAAANSUhEUgAAAZA..."
> }
> ```

> [accordion] rotate: Rotate image
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **angle** `number` *required*
>
> Rotation angle in degrees (clockwise).
>
> **background** `string` (default: #000000)
>
> Background colour for exposed areas (hex).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "angle": 90,
>   "background": "#ffffff"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "width": 600,
>   "height": 1200,
>   "image": "iVBORw0KGgoAAAANSUhEUgAAAloA..."
> }
> ```

> [accordion] convert: Convert format
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **format** `string` *required*
>
> Target format: `jpeg`, `png`, `webp`, `avif`, `gif`, or `tiff`.
>
> **quality** `number` (default: 80)
>
> Quality for lossy formats (1–100).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "format": "webp",
>   "quality": 85
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "format": "webp",
>   "size": 45320,
>   "image": "UklGRuoCAABXRUJQVlA4IN4CAABwEQ..."
> }
> ```

> [accordion] compress: Compress image
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **quality** `number` (default: 80)
>
> Quality level (1–100).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "quality": 60
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "originalSize": 284500,
>   "compressedSize": 98200,
>   "reduction": "65%",
>   "image": "/9j/4AAQSkZJRgABAQEASABIAAD..."
> }
> ```

> [accordion] get-info: Get image metadata
>
> Returns dimensions, format, file size, and other metadata.
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "width": 1920,
>   "height": 1080,
>   "format": "png",
>   "space": "srgb",
>   "channels": 4,
>   "depth": "uchar",
>   "density": 72,
>   "hasAlpha": true,
>   "orientation": 1,
>   "size": 284500
> }
> ```

> [accordion] thumbnail: Generate thumbnail
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **size** `number` (default: 150)
>
> Maximum dimension in pixels.
>
> **format** `string` (default: jpeg)
>
> Output format: `jpeg`, `png`, or `webp`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "size": 200,
>   "format": "jpeg"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "width": 200,
>   "height": 133,
>   "format": "jpeg",
>   "image": "/9j/4AAQSkZJRgABAQEASABIAAD..."
> }
> ```

> [accordion] grayscale: Convert to grayscale
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
> }
> ```

> [accordion] flip: Flip image
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **direction** `string` *required*
>
> Flip direction: `horizontal`, `vertical`, or `both`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "direction": "horizontal"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
> }
> ```

> [accordion] blur: Apply blur effect
>
> **image** `string` *required*
>
> Base64-encoded image.
>
> **sigma** `number` (default: 3)
>
> Blur amount (0.3–1000).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA...",
>   "sigma": 5
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "success": true,
>   "image": "iVBORw0KGgoAAAANSUhEUgAABLA..."
> }
> ```

> [card] [Try this free for 14 days](https://preview.condotta.ai/signup)
>
> Start a 14-day trial on Band 1. At day 14, choose your band, or stop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.