API Documentation
  • Welcome!
  • Quick Start
  • API methods
  • Easy integration
  • Handling Large File Sets
  • Supported formats
  • Webhooks
  • Common usecases
    • Auto enhance image quality
    • Create business photo or avatar from face image
    • Face swap
    • Create beautiful product photo
    • Genarate image in high resolution
    • Remove background
    • AI Drawing to Image - Doodle
    • Real estate
    • Enhancing documents
    • Car dealer photo
  • Image processing
    • Resize and padding
    • Denoise and sharpen
    • Enhance lighting and colors
    • Enhance face details
    • Background removal and generation
    • Image generation
    • Inpainting and outpainting (uncrop)
    • Frame identification
    • Print
    • Captions
    • Additional parameters
    • Presets
  • Account & settings
    • Account information
  • storages
    • Description
    • AWS S3
    • AWS S3 IAM Configuration
  • Presets
    • E-commerce
    • Real-estate
    • Print/Photo
    • Digital Art
  • Technology
    • Algorithms
    • Upscale
    • Background removal
      • Remove BG recommendation
    • Sharpen & Noise reduction
    • Enhance Lighting
  • FAQ
Powered by GitBook
On this page
  1. Image processing

Print

PreviousFrame identificationNextCaptions

Last updated 10 months ago

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

Let's check the example:

{
    "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.

By default desired width and height values are reoriented to match print size orientation.

Parameter name
Description

print_size

Name of the paper size format, f.e. A4, B0, letter, etc.

dpi

Integer value for DPI - 300 by default

print_reorientation

true/false - swap target width and height values to match paper size orientation. true by default

Result is 1240x874 pixels