-
Notifications
You must be signed in to change notification settings - Fork 544
ppt picture set
zmworm edited this page Apr 9, 2026
·
53 revisions
Modify picture properties including position, size, alt text, cropping, and image replacement.
Path: /slide[N]/picture[M]
| Property | Accepted Values | Description |
|---|---|---|
alt |
text | Alt text |
path |
file path | Replace image source |
x, y
|
EMU or units | Position |
width, height
|
EMU or units | Size |
crop |
percentage (0-100) | Crop all sides |
cropLeft |
percentage | Crop left |
cropTop |
percentage | Crop top |
cropRight |
percentage | Crop right |
cropBottom |
percentage | Crop bottom |
rotation |
degrees | Rotation angle (supports decimal) |
opacity |
0.0-1.0 or 0-100 | Picture opacity (auto-scales) |
name |
text | Picture name |
# Update alt text and position
officecli set slides.pptx /slide[1]/picture[1] --prop alt="Updated alt text" --prop width=10cm
# Crop image
officecli set slides.pptx /slide[1]/picture[1] --prop cropLeft=10 --prop cropRight=10
# Replace image source
officecli set slides.pptx /slide[1]/picture[1] --prop path=/tmp/updated-photo.png
# Reposition
officecli set slides.pptx /slide[1]/picture[1] --prop x=5cm --prop y=3cm --prop width=15cm --prop height=10cmBased on OfficeCLI v1.0.40