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

# PassThroughJPEGImages

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

If <mark style="color:red;">true</mark>, JPEG images (images that are already compressed with the DCTEncode filter) are `passed through` Distiller without re-compressing them. (Distiller does perform a decompression to ensure that images are not corrupt, but then passes the original compressed image to the PDF file.) Images that are not compressed will still be compressed according to the image settings in effect for the type of image (for example, ColorImageFilter , etc.).

If <mark style="color:red;">false</mark>, all JPEG encoded images are decompressed and recompressed according the compression settings in effect.

{% hint style="info" %}
However, that JPEG images that meet the following criteria are not passed through even if the value of <mark style="color:red;">PassThroughJPEGImages</mark> is true:

* The image will be downsampled.
* ColorConversionStrategy is sRGB and the current PostScript color space (for the image) is not DeviceRGB or DeviceGray.
* The image will be cropped—i.e., the clip path is such that more than 10% of the image pixels will be removed.
  {% endhint %}

Creative Suite applications do not use this setting. However, Illustrator and InDesign normally behave as if it were true with regard to placed PDF files containing compressed images. That is, they do not normally uncompress and recompress them, unless color conversion or downsampling takes place.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mostafaznv.gitbook.io/pdf-optimizer/advanced-usage/configuring-ghostscript/passthroughjpegimages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
