> 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/grayimageresolution.md).

# GrayImageResolution

| Method Name         | Argument Name | Argument Type |
| ------------------- | ------------- | ------------- |
| grayImageResolution | resolution    | integer       |

Specifies the resolution to which downsampled gray images are reduced.

Valid values are <mark style="color:red;">`9`</mark> to <mark style="color:red;">`2400`</mark> pixels per inch. A gray image is downsampled if <mark style="color:red;">DownsampleGrayImages</mark> is <mark style="color:red;">true</mark> and the resolution of the input image meets the criteria described in Downsampling and subsampling images.
