Resize transformationCDN delivery
fit
Apply the fit transformation to the delivered image.
Delivery URL
Use the Vyso CDN URL to transform and deliver this asset. Generated variants can be cached for subsequent requests.
https://cdn.vyso.io/fit:width=1200,height=800/ASSET_ID.jpgParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| width | number | Yes | Width value accepted by the API.Default: 1200. |
| height | number | Yes | Height value accepted by the API.Default: 800. |
| upscale | boolean | No | Boolean value: true or false.Default: false. |
Examples
The same transformation, shown through the canonical CDN delivery integration.
curl -i "https://cdn.vyso.io/fit:width=1200,height=800/ASSET_ID.jpg"Every example requests the same CDN URL. Use the form that fits the application you are integrating.
Delivery behavior
The CDN applies the requested operation to the source asset and delivers the generated representation. Repeated requests can reuse the cached variant at the edge.