Filestack Documentation

Class Compress​Transform

public class CompressTransform: Transform  

Utilizes mozjpeg to offer improved compression for JPGS over the algorithm used for output=compress:true. It will not attempt to re-compress a previously compressed image.

For the best results, compress should be the last task in your transformation chain.

CompressTransform CompressTransform Transform Transform CompressTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a CompressTransform object.

Methods

metadata(_:​)

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

Adds the metadata option.

Parameters

value Bool

Sets if we want to keep metadata while compressing.