Skip to main content

Insert picture

Place an image file on a slide at a position in points, optionally scaled to a width, a height or both.

Command in the PowerPoint toolkit · id ooa.powerpoint/insert_picture · 8 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
SlideNumberNo1-based slide number; the current slide (the one added or copied last) when empty, else the last.
ImageFileYesImage file (PNG, JPEG, GIF, BMP, TIFF, EMF or WMF).
XNumberNo50Left edge in points.
YNumberNo50Top edge in points.
WidthNumberNoWidth in points; the height keeps the aspect ratio. Original size when empty.
Alt textStringNoAlternative text, also used later by find_replace_picture.
SessionStringNopowerpointPresentation session.
HeightNumberNoHeight in points; with width both are used as given, alone the width keeps the aspect ratio.

Outputs​

OutputTypeWhat it is
shapeStringName of the new picture shape.