rotate_assets
Apply non-destructive clockwise rotation to fix orientation issues in photos. Use on specific assets or entire albums; rotation is a reversible display transform.
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 | ||
| asset_ids | No | ||
| album_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |