Categories

Rotate Image by Arbitrary Angle

Rotate images by any arbitrary angle with options for background color and output format

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: image/jpeg, image/png, image/webp, image/tiff, image/gif, image/bmp

Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) for arbitrary angle rotation

Angle to rotate the image. Positive values rotate clockwise, negative values rotate counter-clockwise.

Background color to use when rotating (for formats without transparency). Default: white for JPEG, transparent for PNG/WebP

Choose output format or keep original

Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

API Documentation

Request Endpoint

POST /en/api/tools/image-rotate-arbitrary

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) for arbitrary angle rotation
angle number Yes Angle to rotate the image. Positive values rotate clockwise, negative values rotate counter-clockwise.
backgroundColor color No Background color to use when rotating (for formats without transparency). Default: white for JPEG, transparent for PNG/WebP
outputFormat select No Choose output format or keep original
quality number No Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

File type parameters need to be uploaded first via POST /upload/image-rotate-arbitrary to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-image-rotate-arbitrary": {
      "name": "image-rotate-arbitrary",
      "description": "Rotate images by any arbitrary angle with options for background color and output format",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-rotate-arbitrary",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]