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

# EncodeGrayImages

| Method Name      | Argument Name | Argument Type |
| ---------------- | ------------- | ------------- |
| encodeGrayImages | status        | boolean       |

If <mark style="color:red;">true</mark>, grayscale images are encoded using the compression filter specified by the value of <mark style="color:red;">GrayImageFilter</mark>.

If <mark style="color:red;">false</mark>, compression filters are not applied to grayscale sampled images.
