add_image
Insert an inline image into a Word document, preserving aspect ratio and supporting PNG/JPEG/GIF/BMP/TIFF. Includes automatic backup and atomic validated saves, skipping documents open in Word.
Instructions
Insert an inline image (PNG/JPEG/GIF/BMP/TIFF), aspect ratio kept. 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 |
|---|---|---|---|
| at_end | No | ||
| backup | No | ||
| width_pt | No | ||
| alignment | No | center | |
| file_path | Yes | ||
| image_path | Yes | ||
| after_index | No | ||
| after_anchor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||