apply_transform
Apply image transform recipes to one or more revisions, producing new derived versions at full resolution. Supports batch processing up to 64 images with per-item error handling.
Instructions
Apply a transform recipe at full resolution and issue a new revision.
Pass either recipe ({"operations": [...]}, applied in order, at most one
"encode" and it must be last) or preset (a built-in named recipe) - exactly
one of the two - and either revision_id (one image) or revision_ids (the same
recipe over a batch of up to 64; one failure does not abort the rest). Call list_operations for the operation catalog and the preset
names, explain_operation for one operation's full schema.
Idempotent: the same (revision_id, resolved recipe) returns the existing derived
revision; a preset hashes identically to the equivalent raw recipe.
Note: if the recipe's encode format is png, webp, or avif, any ICC color profile
on the source is dropped (embedding is only supported for jpeg output); this is
reported as a warning, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | ビルトインプリセット名(`list_operations` の presets セクション参照)。 指定するとそのプリセットのレシピが使われる。`recipe` とは排他。 | |
| recipe | No | 変換レシピ。`{"operations": [...]}`。`preset` とはどちらか一方のみ指定する。 | |
| revision_id | No | 入力 revision ID("rev_...")。`revision_ids` とは排他で、どちらか一方が必須。 | |
| revision_ids | No | 同じレシピを複数 revision に適用する(1..=64 件)。`revision_id` とは排他。 1件が失敗してもバッチは中断せず、その要素に error が入る。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||