byTargetSize

fun byTargetSize(targetSizeKb: Int): CompressionScheme

Re-encodes the image to WebP, iterating quality to approximate targetSizeKb.