WEBP

data class WEBP(val quality: Int = 100) : ImageFormat

WEBP format. Uses lossless compression at quality 100, lossy otherwise.

Requires API 30+ for android.graphics.Bitmap.CompressFormat.WEBP_LOSSLESS and android.graphics.Bitmap.CompressFormat.WEBP_LOSSY.

Falls back to the deprecated android.graphics.Bitmap.CompressFormat.WEBP on API 26-29.

Parameters

quality

Compression quality percentage, from 1 (lowest) to 100 (highest).

Constructors

Link copied to clipboard
constructor(quality: Int = 100)

Properties

Link copied to clipboard

Compression quality percentage, from 1 (lowest) to 100 (highest). Ignored for lossless formats.

Link copied to clipboard

The file extension, e.g. png

Link copied to clipboard

The mime type, e.g. image/png

Link copied to clipboard