# Options

| Option        | Value type                                       | Default value | Explanation                                                                                                                                                                                                                                                                                                                                                                              |
| ------------- | ------------------------------------------------ | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `multiple`    | `boolean`                                        | `false`       | Sometimes the `heic` file contains multiple files, so when outputting `image/jpeg` or `image/png` you will get only the primary image (if found) or the first image. However, setting this option to `true` the function will output multiple images in form of array of `blob` files instead of a single one, i.e. the function will output all the images contained in the `heic` file |
| `toType`      | `"image/png"` or `"image/gif"` or `"image/jpeg"` | `image/png`   | Using `image/png` you will get maximum quality & still image, to lower the quality use `image/jpeg` and set the quality option, and to get an animated `gif` out of an animated `heic` set this option to `image/gif`.                                                                                                                                                                   |
| `quality`     | `number`, between `0` and `1`                    | `0.92`        | The parameter should be between 0 and 1, and it will only be considered when outputting a `image/jpeg`.                                                                                                                                                                                                                                                                                  |
| `gifInterval` | `number` in seconds                              | `0.4`         | How many seconds for the gif image to move from one frame to another. Only considered when using `image/gif`.                                                                                                                                                                                                                                                                            |

> Note: When setting `toType` to `image/gif`, all other options will be ignored except for `gifInterval`.

> Note: All of the above options are optional.
