---
title: "Interface: IQualityLevelsConfig | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/ConfigurationInterfaces.IQualityLevelsConfig/"
---

# Interface: IQualityLevelsConfig

> A structure defining the image quality levels of the Quality meter.

## Remarks

[IQualityMeterConfig](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/ConfigurationInterfaces.IQualityMeterConfig.md) uses this interface. For details, see the [Warnings https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/warnings.html\|Warnings](https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/warnings.html) topic.

## Example

``` json
{
   "violationWarningsSettings": {
       "qualityMeter": {
           "enabled": true,
           "qualityLevels": {
               "warning": "99",
               "bad": "50"
           }
       }
   }
}
```

## Properties

### bad

> **bad**: `number`

Defines the unacceptable image quality level, comparing to the hi-res output DPI, in percent. This value should be less than or equal to the `warning` value. The default is `50`.

***

### warning

> **warning**: `number`

Defines the warning image quality level, comparing to the hi-res output DPI, in percent. This value should be greater than or equal to the `bad` value. The default is `100`.
