Contents

jpeg(withEncodingQuality:)

The JPEG image format.

Declaration

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

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