> For the complete documentation index, see [llms.txt](https://docs.powerpointgeneratorapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerpointgeneratorapi.com/examples/pictures.md).

# Pictures

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) 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](/json-template-syntax/shapes/picture.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1sHs2DEoFJ3x4h5f4FDW_kpr_6cqy62EI) | [output.pptx](https://drive.google.com/uc?export=download\&id=1nnZsYkMhCFO_Y_EXACHnD9iPzB8QSIvW)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FZ4ZdJkgmcj1O6Et5GAbd%2Ftemplate.png?alt=media&amp;token=fe557dd8-c0b6-489c-98e7-d684d9ee5a2f" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FJnrllnHoleEroKdFmURA%2Foutput.png?alt=media&amp;token=24980826-8760-4a71-a4e4-8ee608eca2f0" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "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"
          }
        ]
      }
    ]
  }
}

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}
