-
Notifications
You must be signed in to change notification settings - Fork 517
ppt picture set
zmworm edited this page Apr 29, 2026
·
52 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 |
brightness |
-100..100 | Brightness adjustment (a:lum mod) |
contrast |
-100..100 | Contrast adjustment |
glow |
hex color or <color>:<radius>
|
Picture glow effect |
shadow |
hex color or <color>:<blur>:<angle>:<dist>:<opacity>
|
Picture drop shadow |
# 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 src=/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.64