> 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>
