# COMPARISON\_OPTIONS

Custom options passed to pixelmatch, default to `{ threshold: 0.1 }`. Please note that the `COMPARISON_OPTIONS.threshold` is different from the `FAILURE_THRESHOLD`

* `COMPARISON_OPTIONS.threshold`: is the failure threshold for every pixel comparison
* `FAILURE_THRESHOLD`: is the failure threshold for the whole comparison

💢 Default value: `{ threshold: 0.1 }`

```
// cypress-image-diff.config.js
const config = {
  COMPARISON_OPTIONS: { threshold: 0.2 },
};

module.exports = config;
```

You can verify all available and updated options here: [pixelmatch options](https://github.com/mapbox/pixelmatch#api)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cypress.visual-image-diff.dev/getting-started/custom-config-file/comparison_options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
