resize

abstract fun resize(image: ImageRef, maxSize: Int): Result<ImageRef>

Resizes the provided image to fit within the specified maximum size.

Return

The result containing the resized image.

Parameters

image

The image to be resized.

maxSize

The maximum size of the longest image edge.