# 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="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2F9plOlyuxjHXzQICiRW5B%2Fc0e3deb4-76a1-4d59-88cc-387982e93be2.png?alt=media&#x26;token=1d52833c-6997-4adc-90cb-4f8110c6539a" 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: 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:

```
GET https://documentation.deep-image.ai/image-processing/print.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
