scaleImage

fun scaleImage(inPath: String, outPath: String, scalingRatio: Float)

Create a new scaled image.

Parameters

inPath

Path of the input image

outPath

Path of the output image

scalingRatio

Ratio between the output image and the input image

Throws

if input file cannot be read


fun scaleImage(inPath: String, outPath: String, maxImageSize: Int)

Scale image so that both dimensions fit inside given size.

Parameters

inPath

Path of the input image

outPath

Path of the output image

maxImageSize

Max image size after resize operation

Throws

if input file cannot be read