---
title: "ImageProcessOptions"
sidebar_label: "ImageProcessOptions"
description: "Kotlin binding reference: ImageProcessOptions."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ImageProcessOptions](index.md)

# ImageProcessOptions

[common]\
data class [ImageProcessOptions](index.md)(val doResize: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val resize: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null, val resample: [ImageResample](../ImageResample/index.md)? = null, val antialias: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val doCenterCrop: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val crop: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null, val doRescale: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val rescaleFactor: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, val doNormalize: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val imageMean: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null, val imageStd: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null, val doConvertRgb: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val doPad: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, val padTo: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null)

Per-call overrides of [ImageProcessor.process](../ImageProcessor/process.md): a set field replaces the loaded configuration's value for that call only, an unset (null) field keeps it. Setting [resize](resize.md) does not turn [doResize](doResize.md) on by itself. [imageMean](imageMean.md) and [imageStd](imageStd.md) are set together, per channel (length 1 or 3).

## Constructors

| | |
|---|---|
| [ImageProcessOptions](ImageProcessOptions.md) | [common]<br>constructor(doResize: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, resize: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null, resample: [ImageResample](../ImageResample/index.md)? = null, antialias: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, doCenterCrop: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, crop: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null, doRescale: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, rescaleFactor: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, doNormalize: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, imageMean: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null, imageStd: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null, doConvertRgb: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, doPad: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, padTo: &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null) |

## Properties

| Name | Summary |
|---|---|
| [antialias](antialias.md) | [common]<br>val [antialias](antialias.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [crop](crop.md) | [common]<br>val [crop](crop.md): &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null |
| [doCenterCrop](doCenterCrop.md) | [common]<br>val [doCenterCrop](doCenterCrop.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [doConvertRgb](doConvertRgb.md) | [common]<br>val [doConvertRgb](doConvertRgb.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [doNormalize](doNormalize.md) | [common]<br>val [doNormalize](doNormalize.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [doPad](doPad.md) | [common]<br>val [doPad](doPad.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [doRescale](doRescale.md) | [common]<br>val [doRescale](doRescale.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [doResize](doResize.md) | [common]<br>val [doResize](doResize.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null |
| [imageMean](imageMean.md) | [common]<br>val [imageMean](imageMean.md): [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null |
| [imageStd](imageStd.md) | [common]<br>val [imageStd](imageStd.md): [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)? = null |
| [padTo](padTo.md) | [common]<br>val [padTo](padTo.md): &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null |
| [resample](resample.md) | [common]<br>val [resample](resample.md): [ImageResample](../ImageResample/index.md)? = null |
| [rescaleFactor](rescaleFactor.md) | [common]<br>val [rescaleFactor](rescaleFactor.md): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null |
| [resize](resize.md) | [common]<br>val [resize](resize.md): &lt;Error class: unknown class&gt;&lt;[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)&gt;? = null |