> 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/image-shape.md).

# Pictures

Replace an existing image placeholder with a new image.

* Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
* Insert path of new image to `filename` property. This can be:
  1. a downloadable URL link as a string
  2. or a file attachment
* New image will 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=1txEnBnRmlOXX4ZPDt4edP-pccZoLvqxI) | [output.pptx](https://drive.google.com/uc?export=download\&id=10Fjqlx9xuVd3GBNMFXglfohK69MTj-SX)

{% 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%2FAJG33sTKtZm9FIyFBi0Q%2Ftemplate.png?alt=media&amp;token=e1b61a43-4b10-416e-8537-56ecedb31a81" 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%2FAD3ST7eQg3bXf0OyayVc%2Foutput.png?alt=media&amp;token=8879fbaa-dde5-4338-a6ec-54468822fd72" 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": "happy with automation.jpg"
          }
        ]
      }
    ]
  }
}
```

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