Skip to content

ppt picture set

zmworm edited this page Mar 18, 2026 · 53 revisions

PowerPoint: Picture - Set

Modify picture properties including position, size, alt text, cropping, and image replacement.

Path: /slide[N]/picture[M]

Properties

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

Examples

# 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=10cm

Based on OfficeCli v1.0.6

Clone this wiki locally