← All tool references

Image Tools · execute

Image Rotator

Rotate an image 90, 180, or 270 degrees clockwise and download the result as a PNG.

Open public tool

Overview

Category
Image Tools
API mode
execute
Processing
hybrid
Privacy
ephemeral-upload

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/image-rotator

View this descriptor as JSON

Execute availability

This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.

POST /api/v1/tools/image-rotator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

image · string · required
Processed in browser via canvas; API uses ephemeral upload limits.
degrees · string · required
Choose the clockwise rotation to apply to the image. Accepted values: 90, 180, 270.
{
    "type": "object",
    "properties": {
        "image": {
            "type": "string",
            "description": "Processed in browser via canvas; API uses ephemeral upload limits."
        },
        "degrees": {
            "type": "string",
            "enum": [
                "90",
                "180",
                "270"
            ],
            "description": "Choose the clockwise rotation to apply to the image."
        }
    },
    "required": [
        "image",
        "degrees"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

width · number
Output width.
height · number
Output height.
degrees · number
Browser-calculated degrees.
image_data_url · string
Processed image data URL or download token.
{
    "type": "object",
    "properties": {
        "width": {
            "type": "number",
            "description": "Output width."
        },
        "height": {
            "type": "number",
            "description": "Output height."
        },
        "degrees": {
            "type": "number",
            "description": "Browser-calculated degrees."
        },
        "image_data_url": {
            "type": "string",
            "description": "Processed image data URL or download token."
        }
    },
    "additionalProperties": false
}

Rotate an image 90 degrees clockwise

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/image-rotator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "local-file",
    "degrees": "90"
}'
{
    "ok": true,
    "data": {
        "slug": "image-rotator",
        "result": {
            "values": {
                "width": 800,
                "height": 1200,
                "degrees": 90,
                "image_data_url": null
            },
            "display": {
                "display": "800"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.