# Kraken.io

Kraken.io is an image optimization and compression platform that helps reduce image file sizes without compromising quality.

- **Category:** images & design
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 4
- **Triggers:** 0
- **Slug:** `KRAKEN_IO`
- **Version:** 20260211_00

## Tools

### Check Kraken.io User Status

**Slug:** `KRAKEN_IO_CHECK_USER_STATUS`

Tool to retrieve current Kraken.io account status and quota usage. Use when you need to verify plan limits and remaining quota before processing images.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `api_key` | string | Yes | Your Kraken.io API Key. |
| `api_secret` | string | Yes | Your Kraken.io API Secret. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Optimize Image by URL

**Slug:** `KRAKEN_IO_OPTIMIZE_IMAGE_URL`

Tool to optimize an image from a public URL. Use when you need to compress, resize, or convert an externally hosted image. Returns result immediately if 'wait' is true.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dev` | boolean | No | Development mode (no real optimization) |
| `url` | string | Yes | Publicly accessible URL of the image to optimize |
| `auth` | object | Yes | Authentication credentials for Kraken API |
| `avif` | boolean | No | Return image also in AVIF format |
| `wait` | boolean | No | Return optimization result synchronously if true |
| `webp` | boolean | No | Return image also in WebP format |
| `lossy` | boolean | No | Use lossy optimization mode |
| `resize` | object | No | Resize options sub-object |
| `convert` | object | No | Convert options sub-object for image format conversion |
| `quality` | integer | No | Compression quality (0-100) for lossy mode |
| `lossless` | boolean | No | Use lossless optimization mode |
| `s3_store` | object | No | S3 storage options sub-object |
| `preserve_metadata` | boolean | No | Preserve image metadata (EXIF, IPTC) in output |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Preserve Image Metadata

**Slug:** `KRAKEN_IO_PRESERVE_METADATA`

Tool to preserve EXIF and other metadata during Kraken.io image optimization. Use when you need to maintain metadata while compressing images.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dev` | boolean | No | Use developer mode (no real optimization) |
| `url` | string | No | Remote image URL to optimize, required if `file` is not provided |
| `auth` | object | Yes | Authentication credentials for Kraken.io API |
| `file` | string | No | Binary content of the image to upload, required if `url` is not provided |
| `wait` | boolean | No | Return result synchronously when true |
| `lossy` | boolean | No | Use lossy optimization mode |
| `quality` | integer | No | Image quality for lossy mode (0-100) |
| `s3_store` | object | No | S3 storage parameters for optimized image. |
| `file_name` | string | No | Filename for the uploaded file when using `file` |
| `preserve_metadata` | boolean | No | Preserve all EXIF and other metadata when true |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
