get_cdn_url
Generate CDN URLs for images with resizing, format conversion, and quality adjustments to optimize web performance and delivery.
Instructions
Generate a CDN URL for an image with optional transformations. Supports resizing, format conversion, and quality adjustment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | img-src.io username (appears in CDN URL path) | |
| filepath | Yes | Image path without extension (e.g., 'blog/photo' for blog/photo.webp) | |
| width | No | Resize width in pixels | |
| height | No | Resize height in pixels | |
| fit | No | Resize fit mode: cover (crop), contain (fit), fill (stretch), scale-down (shrink only) | |
| quality | No | Image quality 1-100 (default: 80) | |
| format | No | Output format (default: webp) |