---
title: "Image | Control Quality"
description: "API Documentation"
url: "https://www.contentstack.com/docs/developers/apis/image-delivery-api/control-quality"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-06-02"
---

# Image | Control Quality

## Quality

The quality parameter lets you control the compression level of images that have Lossy file format. The value for this parameters can be entered in any whole number (taken as a percentage) between 1 and 100. The lower the number, the smaller will be file size and lower quality, and vice versa. If the source image file is not of Lossy file format, this parameter will be ignored.

![Change Quality.png](<https://images.contentstack.io/v3/assets/blteae40eb499811073/blt75780680c4ccf883/5a5316fd54f8d3307c09a320/Change Quality.png>)

### Quality

**GET** `/assets/{stack_api_key}/{asset_uid}/{file_uid}/filename.jpg?environment={environment_name}&quality={quality_value}`

##### Additional Notes

1.  Lower the value, lower will be the quality of the output image, and vice versa.
2.  The quality parameter is not applicable for the image types (GIF and PNG) that are not lossy.
3.  When only the quality parameter is specified, and if the output image is larger than the actual image, the original image will be returned.

**Note:** Check out the [limitations](/docs/developers/apis/image-delivery-api#limitations-with-optimizing-image) that are applicable here.

#### Query Parameters

- **quality** (optional)
  Enter the percentage value (1 to 100) of the compression to be applied on the image.
- **environment** (required)
  Enter the environment scoped to your delivery token.