compress
open fun compress(fileParams: CompressorFileParams, compressionParams: ImageCompressor.CompressionParams)
Compress image file. (method is blocking, should be called in worker thread)
Parameters
fileParams
- Info about file input and output
compressionParams
- parameters of the compression algorithm