rotate_assets
Correct photo orientation by rotating assets 90, 180, or 270 degrees clockwise. Non-destructive display transform; original files unchanged. Apply to specific assets or an album; revertible.
Instructions
Apply a non-destructive clockwise rotation to one or more assets. Use this to fix orientation issues. The original file is never modified — rotation is a display transform only. Use revert_asset_edits to undo. Provide EITHER asset_ids OR album_id. Side effect: writes rotation edits to Immich; accumulates with existing rotation.
Args:
angle: Clockwise degrees, must be a multiple of 90 (90, 180, or 270). Default: 90.
asset_ids: List of asset UUIDs to rotate. Mutually exclusive with album_id.
album_id: Rotate all assets in this album. Mutually exclusive with asset_ids.
Returns: JSON with rotated/failed counts and the applied angle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | ||
| album_id | No | ||
| asset_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |