Contrast
Increase contrast
GET
https://images.contentstack.io/v3/assets/{stack_api_key}/{asset_uid}/{file_uid}/filename.jpg?environment={environment_name}&contrast={contrast_value}Note Check out the limitations that are applicable here.
To decrease the value of the contrast parameter of an image, pass a negative value:
Hide Parameters
Query Parameters
contrastoptionalstringExample:
50environmentrequiredstringExample:
productionDecrease contrast
GET
https://images.contentstack.io/v3/assets/{stack_api_key}/{asset_uid}/{file_uid}/filename.jpg?environment={environment_name}&contrast={contrast_value}Note Check out the limitations that are applicable here.
Additional Notes
- The default value for the contrast parameter is 0. This renders an unchanged image.
- A value of -100 will render a neutral gray image.
The contrast parameter allows you to increase or decrease the difference between the darkest and lightest tones in a given image. To specify contrast for an image, use a whole number (integer) between -100 and 100. You can also define contrast using any decimal number between -100.00 and 100.00.
To increase the value of the contrast parameter of an image, pass a positive value: