Skip to main content

Documentation Index

Fetch the complete documentation index at: https://autorender.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

AutoRender’s rotation feature allows you to rotate images by any angle in degrees. Rotation is useful for correcting image orientation, creating artistic effects, or adjusting subject angles for better presentation.

Rotate Parameter - (r)

The rotation parameter allows you to rotate an image around its center point. The value is specified in degrees.
Rotation values are normalized to a 0-360 degree range. Positive values rotate clockwise, and negative values rotate counter-clockwise.
https://assets.autorender.io/LOKVTtKVGb/w_360/doc1/flight.jpg
Original image

Common Rotation Angles

AngleDescription
90Quarter turn clockwise (Portrait to Landscape)
180Half turn (Upside down)
270Three-quarter turn clockwise
autoAutomatically correct orientation based on EXIF data
portraitAutomatically rotate to vertical orientation
landscapeAutomatically rotate to horizontal orientation

Automatic Orientation - (r_portrait, r_landscape)

AutoRender can intelligently rotate images to a specific orientation, regardless of how they were originally captured. This is extremely useful for ensuring consistency in galleries or product grids.
https://assets.autorender.io/LOKVTtKVGb/w_360/doc1/coffee_cup.jpg
Original image
Automatic orientation (r_portrait or r_landscape) analyzes the image dimensions and applies the necessary rotation (90°, 270°, or 0°) to achieve the requested layout while preserving the original aspect ratio.

Best Practices

  • Rotate First: For predictable results, apply rotation before complex cropping or layering.
  • Transparency: AutoRender preserves transparency when rotating images that support it (e.g., PNG, WebP).
  • Exact Dimensions: If you need exact output dimensions after rotation, combine r_ with c_crop or c_fill.
  • Normalization: Don’t worry about large values; r_450 is automatically treated as r_90.
  • Performance: Rotation is processed server-side alongside other transformations for maximum performance.