Use Auto Straighten
The Auto Straighten endpoint (/autoStraighten) applies the Auto Upright transformation to an image.
This feature automatically analyzes your image to easily correct those photos that have a distorted vertical or horizontal perspective, making them straight and aligned.
Example implementation
Here is a detailed implementation example.
Copied to your clipboardcurl -X POST \https://image.adobe.io/lrService/autoStraighten \-H "Authorization: Bearer ${TOKEN}" \-H "x-api-key: ${API_KEY}" \-H "Content-Type: application/json" \-d '{"inputs": {"href": "<SIGNED_GET_URL>","storage": "<STORAGE_LOCATION>"},"outputs": [{"href": "<SIGNED_POST_URL>","type": "<TYPE>","storage": "<STORAGE_LOCATION>"}]}'
Copied to your clipboard{"_links": {"self": {"href": "https://image.adobe.io/lrService/status/<JOB_ID>"}}}


