> For the complete documentation index, see [llms.txt](https://mostafaznv.gitbook.io/pdf-optimizer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mostafaznv.gitbook.io/pdf-optimizer/advanced-usage/configuring-ghostscript/colorimagedepth.md).

# ColorImageDepth

| Method Name     | Argument Name | Argument Type                            |
| --------------- | ------------- | ---------------------------------------- |
| colorImageDepth | depth         | Mostafaznv\PdfOptimizer\Enums\ImageDepth |

Specifies the <mark style="color:red;">number of bits per color</mark> component in the output image.

**Allowed values are:**

* The number of bits per sample: 1, 2, 4, or 8.
* -1 , which forces the downsampled image to have the same number of bits per color component as the original image.
