Nuke Documentation

Structure Image​Encoders.​Default

public struct Default: ImageEncoding  

A default adaptive encoder which uses best encoder available depending on the input image and its configuration.

ImageEncoders.Default ImageEncoders.Default ImageEncoding ImageEncoding ImageEncoders.Default->ImageEncoding

Member Of

ImageEncoders

A namespace with all available encoders.

Conforms To

ImageEncoding

An image encoder.

Initializers

init(compression​Quality:​)

public init(compressionQuality: Float = 0.8)  

Properties

compression​Quality

public var compressionQuality: Float

is​HEIFPreferred

public var isHEIFPreferred = false

Set to true to switch to HEIF when it is available on the current hardware. false by default.

Methods

encode(_:​)

public func encode(_ image: PlatformImage) -> Data?