Filestack Documentation

Class Progressive​JPEGTransform

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.

ProgressiveJPEGTransform ProgressiveJPEGTransform Transform Transform ProgressiveJPEGTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a ProgressiveJPEGTransform object.

Methods

quality(_:​)

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

Adds the quality option.

Parameters

value Int

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

metadata(_:​)

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

Adds the metadata option.

Parameters

value Bool

Sets if we want to keep metadata while cnverting.