# Image transforms

> Resize, crop and convert any stored image by adding options to its address.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://files.docs.sypnia.com/images/transforms/

For agents: Files image transforms via URL query on <ref>.files.sypnia.app: width/height 1–2,500 px, resize cover|contain|fill (cover), gravity center|north|south|east|west|face, format origin|webp|avif|jpeg|png|auto (auto from Accept), quality 20–100 (80), blur 0–100; SDK bucket.url(); private via signed URL with options signed; originals JPEG/PNG/WebP/AVIF/GIF/HEIC/TIFF ≤25 MB and 50 MP; EXIF/GPS stripped; each distinct transform made once and cached, metered per month.

```text
https://<ref>.files.sypnia.app/menu/pan-masa-madre.jpg?width=600&height=400&resize=cover&format=webp&quality=80
```

| Option            | Values                                                                                         | Default        |
| ----------------- | ---------------------------------------------------------------------------------------------- | -------------- |
| `width`, `height` | 1–2,500 pixels                                                                                 | the original's |
| `resize`          | `cover` (fill and crop), `contain` (fit inside), `fill` (stretch)                              | `cover`        |
| `gravity`         | `center`, `north`, `south`, `east`, `west`, `face`                                             | `center`       |
| `format`          | `origin`, `webp`, `avif`, `jpeg`, `png`; `auto` picks AVIF or WebP from the browser's `Accept` | `auto`         |
| `quality`         | 20–100                                                                                         | 80             |
| `blur`            | 0–100                                                                                          | 0              |

The SDK builds these addresses: `bucket.url(path, { width: 600, format: 'webp' })`. For private files the options are part of the [signed URL](https://files.docs.sypnia.com/access/signed-urls-and-keys).

Supported originals: JPEG, PNG, WebP, AVIF, GIF (first frame), HEIC and TIFF, up to 25 MB and 50 megapixels. EXIF metadata, including GPS, is removed from transformed images.

Each distinct transform is made once and cached; the console shows how many transforms a project made in the month, which is what is metered.
