ProgressiveJPEGTransform

public class ProgressiveJPEGTransform : Transform

Converts an image to progressive JPEG.

This is ideal for large images that will be displayed while downloading over a slow connection, allowing a reasonable preview after receiving only a portion of the data. However, support for progressive JPEGs is not universal.

When progressive JPEGs are received by programs that do not support them (such as versions of Internet Explorer before Windows 7) the software displays the image only after it has been completely downloaded.

Lifecycle

  • Initializes a ProgressiveJPEGTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Adds the quality option.

    Declaration

    Swift

    @discardableResult
    func quality(_ value: Int) -> Self

    Parameters

    value

    You can set the quality of output file. Valid range: 1...100

  • Adds the metadata option.

    Declaration

    Swift

    @discardableResult
    func metadata(_ value: Bool) -> Self

    Parameters

    value

    Sets if we want to keep metadata while cnverting.