tools, visual-recognition, artificial-intelligence

🖼️🪄Stretched Image Restoration

Automatically restore stretched images to their normal proportions with our Stretched Image Restoration API.

BASIC
PRO
ULTRA
MEGA
⚠️

You get 10 API units just by validating your email.
No credit card required.

  • API Units: 10/month
  • API Limit Type: HARD
  • Total Endpoints: 1
Automatically restore stretched images to their normal proportions with our Stretched Image Restoration API.
5 min read

Table of Contents

  • 🖼️🖼️🪄Stretched Image Restoration API
  • Features
  • 📎Use-Cases
  • 📘API Documentation
  • 🔌Endpoint
  • 📦Request
  • 📬Response
  • ⚠️Status Codes & Error Handling
  • 📎SEO Keywords

🖼️🪄Stretched Image Restoration API

The Stretched Image Restoration API is designed to repair images that have been excessively stretched, restoring their natural proportions and quality. Using advanced AI algorithms, this API detects distortions caused by improper aspect ratios and reconstructs the original visual balance. It accepts common image formats and delivers a base64-encoded restored image along with the recovery ratio.


Features

  • AI-Powered Restoration:
    Automatically identifies and corrects stretched areas in images.
  • Aspect Ratio Recovery:
    Restores images with distorted aspect ratios (within 4:1) to their natural proportions.
  • Wide Format & Resolution Support:
    Accepts JPEG, JPG, PNG, and BMP images up to 8 MB with resolutions between 10×10 px and 5000×5000 px.
  • Detailed Output Metrics:
    Provides a recovery ratio indicating the extent of restoration performed.

Use-Cases

  • Digital Photo Enhancement:
    Repair photos that have been inadvertently resized or stretched in editing processes.
  • Archival Restoration:
    Restore historical images or scanned documents where stretching artifacts are present.
  • E-Commerce Optimization:
    Improve product images that suffer from aspect ratio distortions for better display on digital platforms.
  • Content Creation:
    Enhance visual media for marketing, social media, and personal projects by correcting image distortions.

API Documentation

Endpoint

curl -X 'POST' \
  'https://prod.api.market/api/v1/ailabtools/stretched-image-restoration/image/enhance/stretch-restore' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: <YOUR API MARKET KEY>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'image=@pinch-of-yum-workshop-19.jpg;type=image/jpeg'

Request

Image Requirements

  • Formats: JPEG, JPG, PNG, BMP
  • Max File Size: 8 MB
  • Resolution: Greater than 10×10 px and less than 5000×5000 px
  • Aspect Ratio: Must be within 4:1 (width:height)

Request Body Parameters

FieldRequiredTypeDescription
imageYesfileThe input image to be restored.

Response

{
  "error_code": 0,
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEB ...",
  "log_id": "1909545113450238822",
  "ratio": -0.1548833250999451,
  "request_id": "1909545113450238822"
}

Status Codes & Error Handling

FieldDescription
error_code0 indicates success; non-zero values indicate an error (e.g., invalid input, incorrect format).
error_msgProvides a brief description of any error encountered.
status_codeStandard HTTP status codes (e.g., 200 for success, 400 for bad requests) provided in error_detail.

SEO Keywords

stretched image restoration API, image de-stretching, AI image restoration, image repair API, reverse image stretching, aspect ratio recovery API, image quality enhancement, AI photo correction, digital image restoration

Skip to API Playground

API Playground (Try the APIs)

API.market Guarantee

Only pay for API calls with OK(2XX) status code.

Cancel Anytime

Mange all your API subscriptions.

24/7 Customer Support

Just reach our using the chat window on the right corner.

Refunds policy

30 days return for unused API quota for any reason

N/A · 0 ReviewsBack to top

Write a Review for this API Product

🖼️🪄Stretched Image Restoration# 🖼️🪄Stretched Image Restoration API The Stretched Image Restoration API is designed to repair images that have been excessively stretched, restoring their natural proportions and quality. Using advanced AI algorithms, this API detects distortions caused by improper aspect ratios and reconstructs the original visual balance. It accepts common image formats and delivers a base64-encoded restored image along with the recovery ratio. --- ## Features - **AI-Powered Restoration:** Automatically identifies and corrects stretched areas in images. - **Aspect Ratio Recovery:** Restores images with distorted aspect ratios (within 4:1) to their natural proportions. - **Wide Format & Resolution Support:** Accepts JPEG, JPG, PNG, and BMP images up to 8 MB with resolutions between 10×10 px and 5000×5000 px. - **Detailed Output Metrics:** Provides a recovery ratio indicating the extent of restoration performed. --- ## Use-Cases - **Digital Photo Enhancement:** Repair photos that have been inadvertently resized or stretched in editing processes. - **Archival Restoration:** Restore historical images or scanned documents where stretching artifacts are present. - **E-Commerce Optimization:** Improve product images that suffer from aspect ratio distortions for better display on digital platforms. - **Content Creation:** Enhance visual media for marketing, social media, and personal projects by correcting image distortions. --- ## API Documentation ### Endpoint ```bash curl -X 'POST' \ 'https://prod.api.market/api/v1/ailabtools/stretched-image-restoration/image/enhance/stretch-restore' \ -H 'accept: application/json' \ -H 'x-magicapi-key: <YOUR API MARKET KEY>' \ -H 'Content-Type: multipart/form-data' \ -F 'image=@pinch-of-yum-workshop-19.jpg;type=image/jpeg' ``` ### Request #### Image Requirements - **Formats:** JPEG, JPG, PNG, BMP - **Max File Size:** 8 MB - **Resolution:** Greater than 10×10 px and less than 5000×5000 px - **Aspect Ratio:** Must be within 4:1 (width:height) #### Request Body Parameters | Field | Required | Type | Description | |--------|:--------:|------|------------------------------------| | image | Yes | file | The input image to be restored. | ### Response ```json { "error_code": 0, "error_detail": { "status_code": 200, "code": "", "code_message": "", "message": "" }, "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEB ...", "log_id": "1909545113450238822", "ratio": -0.1548833250999451, "request_id": "1909545113450238822" } ``` ## Status Codes & Error Handling | Field | Description | |---------------|------------------------------------------------------------------------------------------------------| | `error_code` | `0` indicates success; non-zero values indicate an error (e.g., invalid input, incorrect format). | | `error_msg` | Provides a brief description of any error encountered. | | `status_code` | Standard HTTP status codes (e.g., `200` for success, `400` for bad requests) provided in `error_detail`. | ## SEO Keywords stretched image restoration API, image de-stretching, AI image restoration, image repair API, reverse image stretching, aspect ratio recovery API, image quality enhancement, AI photo correction, digital image restoration
API provider offers quality service.

Recently Visited. APIs

  • 🖼️🪄Stretched Image Restoration

    By ailabtools

    Automatically restore stretched images to their normal proportions with our Stretched Image Restoration API.

    toolsvisual-recognitionartificial-intelligence
    /ailabtools/stretched-image-restoration
    0 (0)