Pictures

Replace an existing image placeholder with a new image. New image will inherit the size and positioning of the existing image placeholder.

  1. Specify name of shape to be amended. This page outlines how to find out name of the shape.

  2. Insert path of new image to filename property. This can be:

    1. a downloadable URL link as a string

    2. or a file attachment

Before and after:

Template Presentation

Image File

JSON Payload

{
  "presentation": {
    "template": "replace_image_template.pptx",
    "export_version": "Pptx2010",
    "slides": [
      {
        "type": "slide",
        "slide_index": 1,
        "shapes": [
          {
            "name": "Picture 1",
            "filename": "happy with automation.jpg"
          }
        ]
      }
    ]
  }
}

Last updated