MH MediaHarvester Web Context API
ROTATE IMAGE BATCH API

Rotate Image

Rotate images clockwise or counter-clockwise while preserving transparency and choosing output format. Upload images, tune output settings, and download the result instantly.

Upload

Select Image files

Output

Rotate settings

/v1/image/rotate

Explore tools

More image workflows

More image tools

Continue to...

Rotate Image for every workflow

Use this page for quick edits or connect the API and CLI to repeat the same operation across your own files.

Batch limits and Premium upgrade

Process up to 3 files at once for free. Upgrade when you need larger batch jobs.

Developer API

Connect this tool to your application through POST /v1/image/rotate.

Format-aware processing

Work with raster images, SVG files, HEIC/HEIF photos, TIFF/BMP/ICO assets and selected PDF pages from one tool.

API

Rotate Image endpoint

POST /api/image/rotate
Example cURL
curl -X POST "http://127.0.0.1:8013/api/image/rotate" \
  -H "X-API-Key: 1d251a33bcf2e90689dd9eac608f70c0302faccec7afaedc" \
  -F "files=@/path/to/input.png" \
  -F "width=1200" \
  -F "rotate_degrees=90" \
  -F "watermark_text=MediaHarvester" \
  -F "output_format=webp" \
  -F "quality=82" \
  -o image-tool-output.bin
CLI
python scripts/image_tool_cli.py rotate ./input-1.png ./input-2.jpg \
  --base-url http://127.0.0.1:8013 \
  --api-key 1d251a33bcf2e90689dd9eac608f70c0302faccec7afaedc \
  --output ./image-tool-output
MCP
python scripts/image_tools_mcp_server.py
# exposes: resize_image, crop_image, compress_image, rotate_image, watermark_image, transform_image, list_image_tools

FAQ

Rotate Image FAQs

What is the Rotate Image tool?

It lets you upload images and rotate them online, with an API option for automated workflows.

Can I process multiple images at once?

Yes. The free public tool supports up to 3 files per batch. Larger batches are routed to the Premium upgrade flow.

Is there an API for this image tool?

Yes. Use multipart uploads with POST /api/image/rotate or the versioned alias POST /v1/image/rotate.

Can I use this from the command line?

Yes. Use scripts/image_tool_cli.py rotate with one or more local files and the same options shown on this page.

Can MCP clients access this tool?

Yes. The MCP wrapper exposes resize_image, crop_image, compress_image, rotate_image, watermark_image, transform_image, and list_image_tools helpers.

Which formats are supported?

Supported inputs include JPG, JPEG, PNG, WebP, AVIF, GIF, SVG, TIFF, TIF, BMP, ICO, HEIC, HEIF and PDF.

Are SVG files handled as vectors?

SVG compression keeps vector markup. SVG resize and crop preserve vector canvas settings when SVG output is selected, and rasterize when a raster output format is selected.

How are PDF files handled?

Choose a PDF page and process it as an image for resizing, cropping, compression, rotation or watermarking.

Can I remove metadata?

Yes. Metadata stripping is enabled by default for raster outputs to reduce file size and protect privacy.

What happens if I upload more than 3 files?

The UI and API return a Premium-required response so the free tool stays fast and predictable.