Class
CompressTransform
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.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
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 compressing. |