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

# GrayImageDownsampleThreshold

| Method Name                  | Argument Name | Argument Type |
| ---------------------------- | ------------- | ------------- |
| grayImageDownSampleThreshold | threshold     | float         |

Sets the image downsample threshold for grayscale images. This is the ratio of image resolution to output resolution above which downsampling may be performed.
