---
title: "jpeg(withEncodingQuality:)"
framework: testing
role: symbol
role_heading: Type Method
path: "testing/attachableimageformat/jpeg(withencodingquality:)"
---

# jpeg(withEncodingQuality:)

The JPEG image format.

## Declaration

```swift
static func jpeg(withEncodingQuality encodingQuality: Float) -> AttachableImageFormat
```

## Parameters

- `encodingQuality`: The encoding quality to use when serializing an image. A value of 0.0 indicates the lowest supported encoding quality and a value of 1.0 indicates the highest supported encoding quality.

## Return Value

Return Value An instance of this type representing the JPEG image format with the specified encoding quality.
