JSON API - replaceVariableImage
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
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 |
|
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.