Skip to content

ppt picture add

zmworm edited this page Mar 18, 2026 · 53 revisions

PowerPoint: Picture - Add

Insert images on a slide with positioning and alt text.

Path: /slide[N] (parent)

Properties

Property Default Description
path (required) Image file path
name Picture {N} Picture name
alt filename Alt text for accessibility
width 6in Width (EMU or units)
height 4in Height (EMU or units)
x centered Left position (EMU or units)
y centered Top position (EMU or units)

Examples

# Add a picture with size
officecli add slides.pptx /slide[1] --type picture --prop path=photo.jpg --prop width=8in --prop height=5in --prop alt="Team photo"

# Add logo at specific position
officecli add slides.pptx /slide[1] --type picture --prop path=logo.png --prop x=20cm --prop y=16cm --prop width=3cm --prop height=1cm

# Add named picture
officecli add slides.pptx /slide[1] --type picture --prop path=/tmp/chart.png --prop name="Chart Screenshot" --prop x=2cm --prop y=4cm --prop width=20cm --prop height=12cm

Based on OfficeCli v1.0.6

Clone this wiki locally