imageResizeOptions

fun imageResizeOptions(maxLongEdgePx: Int? = 2560, downscaleOnly: Boolean = true, maintainAspectRatio: Boolean = true): ImageResizeOptions

Resize applied in the same pass as the compression. Only takes effect alongside a non-null compression.

Parameters

maxLongEdgePx

Caps the image's longest edge, preserving aspect ratio. null leaves it unconstrained. Defaults to 2560.

downscaleOnly

Whether images smaller than maxLongEdgePx are never upscaled. Defaults to true.

maintainAspectRatio

Whether resizing preserves the original aspect ratio. Defaults to true.