Transform and optimize images with various operations
| Parameter | Type | Required | Description | Default | Range |
|---|---|---|---|---|---|
| src | string | Yes | VisionFly CDN URL | - | - |
| w | integer | No | Width in pixels | 1280 | 1-4200 |
| h | integer | No | Height in pixels | 720 | 1-4200 |
| q | integer | No | Quality (1-100) | 80 | 1-100 |
| f | string | No | Output format | auto | auto, webp, avif, jpeg, jpg, png |
| blur | number | No | Gaussian blur strength | 0 | 0-100 |
| sharp | number | No | Sharpen strength | 0 | 0-100 |
| bri | integer | No | Brightness adjustment | 0 | -100 to 100 |
| con | integer | No | Contrast adjustment | 0 | -100 to 100 |
| sat | integer | No | Saturation adjustment | 0 | -100 to 100 |
| hue | integer | No | Hue rotation | 0 | 0-360 |
| gamma | number | No | Gamma adjustment | 2.2 | 1.0-3.0 |
VisionFly CDN url
Width in pixels
x <= 4200Height in pixels
x <= 4200Quality (1-100)
1 <= x <= 100Output format
auto, webp, avif, jpeg, jpg, png Gaussian blur strength (0-100)
0 <= x <= 100Sharpen strength (0-100)
0 <= x <= 100Brightness adjustment (-100 to 100)
-100 <= x <= 100Contrast adjustment (-100 to 100)
-100 <= x <= 100Saturation adjustment (-100 to 100)
-100 <= x <= 100Hue rotation (0-360)
0 <= x <= 360Gamma adjustment (1.0-3.0)
1 <= x <= 3Successful Response
Response model for image transformation operations.
Contains information about the success/failure of the transformation and details about the transformed image.
Indicates whether the transformation was successful
Error message if the transformation failed
"Invalid input image"
"Unsupported format"
Public URL of the transformed image
1 - 2083"https://cdn.visionfly.ai/images/transformed_image.webp"
Size of the transformed image in bytes
x >= 0302.5
MIME type of the transformed image
"image/webp"
"image/jpeg"