> For the complete documentation index, see [llms.txt](https://documentation.deep-image.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.deep-image.ai/image-processing/print.md).

# Print

Deep Image API supports optimizing image resolution for specific paper size.

Let's check the example:

```json
{
    "url": "https://deep-image.ai/api-example.png",
    "print_size": "A5",
    "dpi": 150
}
```

A5 paper size is 5.83 x 8.27 inches. Our api-example.png has 640x427 pixels.

DPI 150 means that image has to have at least 150 points/pixels per inch so image will be upscaled to 874x1240 pixels.

{% hint style="info" %}
By default desired width and height values are reoriented to match print size orientation.
{% endhint %}

<figure><img src="/files/dA5jxrQJ8PpnuhCfwkfJ" alt=""><figcaption><p>Result is 1240x874 pixels</p></figcaption></figure>

<table><thead><tr><th width="226">Parameter name</th><th>Description</th></tr></thead><tbody><tr><td>print_size</td><td>Name of the paper size format, f.e. A4, B0, letter, etc.</td></tr><tr><td>dpi</td><td>Integer value for DPI - <strong>300 by default</strong></td></tr><tr><td>print_reorientation</td><td>true/false - swap target width and height values to match paper size orientation. <strong>true by default</strong></td></tr></tbody></table>


---

# 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://documentation.deep-image.ai/image-processing/print.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.
