Named Transforms
Named transforms are reusable transformation presets that you define once and reference by name in image URLs. They enforce consistent image dimensions and quality across your application.
Why Named Transforms?
Consistency — Ensure all thumbnails, gallery images, and hero images use identical parameters
Security — Lock parameters so clients can't request arbitrary sizes
Simplicity — Use
t_thumbnailinstead ofw_200,h_200,fit_cover,q_80Maintainability — Change dimensions in one place, all URLs update automatically
Usage in URLs
When a parameter is locked in the transform definition, URL overrides for that parameter are ignored.
API Reference
All endpoints require API key authentication.
Create a Named Transform
POST /api/{project}/transforms
Request Body
Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Transform name (alphanumeric, hyphens, underscores) |
| object | Yes | Default transform parameters |
| string[] | No | Parameters that cannot be overridden via URL |
| string | No | Human-readable description |
Response 201 Created
List Named Transforms
GET /api/{project}/transforms
Response 200 OK
Get a Named Transform
GET /api/{project}/transforms/{name}
Update a Named Transform
PUT /api/{project}/transforms/{name}
Send the full transform definition. All fields are replaced.
Delete a Named Transform
DELETE /api/{project}/transforms/{name}
Returns 204 No Content.
Common Transform Presets
Here are recommended presets for typical use cases:
Thumbnails
Gallery
Hero / Banner
LQIP Placeholder
Watermarked Download
Parameter Resolution
When a named transform is used alongside explicit URL parameters, Pixault resolves them in this order:
Start with the named transform's default parameters
Apply URL parameters as overrides
Skip overrides for locked parameters