compress

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