Deep Image API supports optimizing image resolution for specific paper size.
Let's check the example:
"url": "",
"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.
By default desired width and height values are reoriented to match print size orientation.
Result is 1240x874 pixels
Parameter name
Name of the paper size format, f.e. A4, B0, letter, etc.
Integer value for DPI - 300 by default
true/false - swap target width and height values to match paper size orientation. true by default