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.
-
Initializes a
ProgressiveJPEGTransformobject.Declaration
Swift
public init()
-
Adds the
qualityoption.Declaration
Swift
@discardableResult func quality(_ value: Int) -> SelfParameters
valueYou can set the quality of output file. Valid range:
1...100 -
Adds the
metadataoption.Declaration
Swift
@discardableResult func metadata(_ value: Bool) -> SelfParameters
valueSets if we want to keep metadata while cnverting.
View on GitHub
ProgressiveJPEGTransform Class Reference