JSON API - replaceVariableImage

replaceVariableImage

PREMIUM TRIAL / ADVANCED

Replaces image placeholders with new images.

Note

You are reading the JSON API documentation. For the PHP API method please go to replaceVariableImage.

JSON data
Key Description
variables The names of the placeholder template variables as keys and the images that should replace them as values. Image path, Base64 string, or URL.
activeSlide If true, get only the active slide. Default as false.
descr Descr value.
hyperlink If set, adds the image hyperlink (hyperlink or bookmark).
mime Forces a mime: image/jpg, image/jpeg, image/png, image/gif, image/bmp, image/webp.
sizeX EMUs (English Metric Unit).
sizeY EMUs (English Metric Unit).
target
  • slides (default)
  • slideLayouts
  • slideMasters
Code samples

Example #1

A template can be a local file, a Base64 string, or a remote file.

Release notes
  • phppptx 5.0:
    • new action.