# Conversion Optimisation webp/avif

EN:

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add smartunityia/conversion

# Browse available tools
npx -y @smithery/cli@latest tool list smartunityia/conversion

# Get full schema for a tool
npx -y @smithery/cli@latest tool get smartunityia/conversion convert_image_to_webp

# Call a tool
npx -y @smithery/cli@latest tool call smartunityia/conversion convert_image_to_webp '{}'
```

## Direct MCP Connection

Endpoint: `https://conversion--smartunityia.run.tools`

## Tools (6)

- `convert_image_to_webp` — Converts an image to highly optimized WebP or AVIF format. Triggers a HTTP 402 payment requirement on the Base network.
- `convert_batch` — 💰 Converts up to 5 images in a single x402 payment at a group rate ($0.004 — 20% saving vs 5 individual calls). Each i…
- `get_image_metadata` — 🆓 FREE — Extracts detailed metadata from an image (format, dimensions, channels, DPI, alpha, color space) without any …
- `resize_image` — 💰 Resizes an image to specified dimensions with fit strategy. Triggers x402 ($0.001).
- `crop_image` — 💰 Crops a precise rectangular region from an image. Triggers x402 ($0.001).
- `compress_image` — 💰 Compresses an image with quality control. Returns compressionRatio. Triggers x402 ($0.001).

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get smartunityia/conversion <tool-name>
```

## Resources

- `image-api://metrics` — Anonymized public usage and performance statistics.
- `image-api://instructions` — Step-by-step x402 payment guide.
- `image-api://spec` — Full OpenAPI specification.
- `image-api://capabilities` — Overview of all tools and supported formats.
- `image-api://quickstart` — Quick start guide with usage examples.
- `image-api://faq` — Frequently asked questions.
- `image-api://pricing` — Structured pricing information (JSON).

## Prompts (7)

- `image_optimization_agent` — Load an AI agent workflow for autonomous image conversion and x402 payment handling.
- `x402_payment_help` — Get detailed help on how to perform x402 payments for image conversion.
- `format_advisor` — Ask for advice on which image format (WebP or AVIF) to choose based on your priority (speed or quality).
- `image_performance_audit` — Analyze an image for SEO and suggest concrete optimizations.
- `smart_optimizer` — Autonomous workflow: analyze, choose the best format and convert via URL or local path.
- `html_picture_generator` — Generate optimized HTML <picture> code after conversion.
- `technical_troubleshooter` — Checks for corruption and EXIF data via any source (URL, path, b64).
