---
title: encodingQuality
framework: testing
role: symbol
role_heading: Instance Property
path: testing/attachableimageformat/encodingquality
---

# encodingQuality

The encoding quality to use for this image format.

## Declaration

```swift
var encodingQuality: Float { get }
```

## Discussion

Discussion The meaning of the value is format-specific with 0.0 being the lowest supported encoding quality and 1.0 being the highest supported encoding quality. The value of this property is ignored for image formats that do not support variable encoding quality.
