Pictures

  1. Select the shape by name you want to modify. See here to find shape names.

  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

Note: The new image will automatically inherit the size and positioning of the existing image placeholder.

Reference: picture

Download: input.ziparrow-up-right | output.pptxarrow-up-right


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Picture 1",
            "filename": "shirt.png"
          },
          {
            "name": "Picture 2",
            "filename": "https://drive.google.com/uc?export=download&id=1ZT3FbKEE-wm7nIqEjQFO_s7bap_vxaqa"
          },
          {
            "name": "Picture 3",
            "filename": "short.png"
          }
        ]
      }
    ]
  }
}

Last updated