resize_image
Resize an inline image in a Word document to a target width in points while preserving aspect ratio. Creates backups before saving and blocks changes when the file is open in Word.
Instructions
Resize an inline image to width_pt, aspect ratio kept (image_index from list_images). 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 | ||
| width_pt | Yes | ||
| file_path | Yes | ||
| image_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||