FileTransformer

interface FileTransformer

FileTransformer is responsible for transforming the file before uploading it. This can be used to compress images or videos before uploading them. The transformed file will be uploaded to the CDN. The original file will not be modified.

Inheritors

Functions

Link copied to clipboard
abstract fun transform(file: File): File

Transforms the file before uploading it. This can be used to compress images or videos before uploading them. It is safe to block