# Reduce colors

## Introduction

Color discrepancies can often present significant challenges, impacting the final visual effect of printed designs. With Fermat you can quantize your prints, optimize them for printing, and ensure accurate and consistent results every time. This guide will show you how to quantize your prints easily.

## Step by step guide

To quantize your patterns, follow these steps:

{% stepper %}
{% step %}

### Open the AI tool

1. Go to [Fermat.app](https://fermat.app/) and log into your account.
2. Open: '[Reduce colors](https://toolmaker.fermat.app/tool/quantize-your-pattern-0f92a291-305a-4a22-92e0-ca355994e4a5)' tool.
   {% endstep %}

{% step %}

### Upload your print

Upload a print that you want o quantize.

{% hint style="success" %}
Supported formats: JPEG, PNG, and WEBP
{% endhint %}
{% endstep %}

{% step %}

### Set a number of colors

Set the number of colors that you want to keep.
{% endstep %}

{% step %}

### (Optional) Specify which colors

You can optionally specify which colors you want to keep.

{% hint style="warning" %}
Define the colors in HEX value. Separate them with commas or the tool might not work as expected.
{% endhint %}
{% endstep %}

{% step %}

### Generate image

Click the 'Generate' button to quantize the provided print.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2F49fuctc7SYGJ4mAfV8ZC%2FCaptura%20de%20pantalla%202025-01-30%20a%20les%2011.39.01.png?alt=media&#x26;token=01a4c64f-2d7f-4d09-b00b-dea03ffaf17b" alt="" width="563"><figcaption><p>Generate button</p></figcaption></figure>
{% endstep %}
{% endstepper %}

{% embed url="<https://youtu.be/-qQ7oHm9sg0>" %}
This video demonstrates how to quantize your pattern.
{% endembed %}

## Example

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FbxHEGlI9AGeTuTRNfOP6%2FSection.png?alt=media&#x26;token=56b88b39-565e-4c05-9c19-b700586d44d3" alt=""><figcaption></figcaption></figure>
