QualityTransform

public class QualityTransform : Transform

Sets the quality of your JPG or WEBP image without the danger of possibly generating a larger file.

Lifecycle

  • Initializes a QualityTransform object.

    Declaration

    Swift

    public init(value: Int)

    Parameters

    value

    This task will take a JPG or WEBP file and reduce the file size of the image by reducing the quality. If the file is not a JPG, the original file will be returned. If after the conversion, the resulting file is not smaller than the original, the original file will be returned. Valid range: 1...100