- Media API
- Transformations
- Adjust
- brightness
brightness
The brightness transformation adjusts the overall brightness of an image by applying a multiplier factor. Use values greater than 1 to brighten, values less than 1 to darken. Useful for correcting exposure, enhancing dark photos, or creating variations for different lighting conditions.
Serving Content via CDN
The Media API is a CDN-based service that serves transformed images via GET requests. When you request a transformed image URL, the transformation is applied dynamically on the first request and then cached for subsequent requests.
URL Pattern
https://media.vyso.io/brightness:value=1.2/ASSET_ID.jpgExamples
Increase Brightness (1.2x)
curl -i GET https://media.vyso.io/brightness:value=1.2/ASSET_ID.jpgSignificant Brightness Increase (1.5x)
curl -i GET https://media.vyso.io/brightness:value=1.5/ASSET_ID.jpgDecrease Brightness (0.8x)
curl -i GET https://media.vyso.io/brightness:value=0.8/ASSET_ID.jpgDark Image (0.5x)
curl -i GET https://media.vyso.io/brightness:value=0.5/ASSET_ID.jpgOriginal Brightness (No Change)
curl -i GET https://media.vyso.io/brightness:value=1/ASSET_ID.jpgOn the first request, you'll receive a X-Cache: MISS header while the transformation is applied and cached. Subsequent requests will return X-Cache: HIT.
Parameters
valueREQUIREDBrightness multiplier factor. Use this to increase or decrease image brightness. Accepted values:
0.5- Half brightness (darker)0.8- Slightly darker1.0- Original brightness (no change)1.2- Slightly brighter1.5- Significantly brighter2.0- Double brightness- Decimal values are supported for fine-tuned brightness control
- Values should be positive; extreme values may cause image clipping
Response
The API returns the image with the brightness adjusted by the specified multiplier factor. The response format depends on the format of the asset stored in the Vyso asset cloud.
Content-Type: Determined by the stored asset format (e.g., image/jpeg, image/png)