# DecodeImage.Options

public static class **DecodeImage.Options** Optional attributes for `https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage`

### Public Methods

|---|---|
| [DecodeImage.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options) | [channels](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options#channels(java.lang.Long))(Long channels) |
| [DecodeImage.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options) | [expandAnimations](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options#expandAnimations(java.lang.Boolean))(Boolean expandAnimations) |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public [DecodeImage.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options)
**channels**
(Long channels)

<br />

##### Parameters

| channels | Number of color channels for the decoded image. |
|---|---|

#### public [DecodeImage.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DecodeImage.Options)
**expandAnimations**
(Boolean expandAnimations)

<br />

##### Parameters

| expandAnimations | Controls the output shape of the returned op. If True, the returned op will produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all GIFs, whether animated or not. If, False, the returned op will produce a 3-D tensor for all file types and will truncate animated GIFs to the first frame. |
|---|---|