InsertImage

Insert an image in place of a placeholder shape.

JSON

{
"image": string,
"replaceShapeNamed": string,
"replaceShapeContainingText": string,
"matchCase": boolean,
"crop": string,
}

Fields

image
Image to insert in place of placeholder shape. You can specify a URL of .png, .jpeg, or .svg that is publicly accessible or provde the image binary encoded as a base64 string. If you're sending a multipart/form message that bundles the image data in one part, you can specify the name of the part. Required.
replaceShapeNamed
Matches all shapes whose shape name as listed in PowerPoint's selection pane matches this string. Optional, but you must specify at least one of replaceShapeNamed or replaceShapeContainingText.
replaceShapeContainingText
Replace all shapes whose text contents include this string. Optional, but you must specify at least one of replaceShapeContainingTest or replaceShapeNamed.
matchCase
Perform case-sensitive match on shape name or contents. Optional, defaults to false.
crop
How to scale the image relative to the placeholder rectangle. If you specify "fit" (or omit the field), Slide Tailor will scale the image to fit within the placeholder. If you specify "fill" the image will be drawn larger to completely cover the placeholder. Optional, defaults to "fit".