replace_image
Swap an image in a Word doc without changing its placement or display size. Creates a backup before saving and refuses documents open in Word.
Instructions
Swap an image's file, keeping placement and display size. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| image_index | Yes | ||
| new_image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||