🖼️🪄Stretched Image Restoration
Automatically restore stretched images to their normal proportions with our Stretched Image Restoration API.
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
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.
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'
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 . |
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