Class
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.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
quality(_:)
@discardableResult
func quality(_ value: Int) -> Self
Adds the quality
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
You can set the quality of output file. Valid range: |
metadata(_:)
@discardableResult
func metadata(_ value: Bool) -> Self
Adds the metadata
option.
Parameters
Name | Type | Description |
---|---|---|
value | Bool |
Sets if we want to keep metadata while cnverting. |