Image

This binding will insert an image in a shape.

Syntax

<<Image:AltText$ImagePath$FitType>>

Parameters

AltText: Alt text of the generated image. This parameter is optional.
Imagepath: JSON path of the string that contains the image. The string can be either a URL leading to a file or a Base64 encoded image. A URL is recommended as this approach will ensure better performance.
FitType: Can be one of the following values:

  • Fit: The image will fit inside the shape, leaving whitespace at either x- or y-axis if the image ratio does not match the image shape.
  • Fill: The image will fit inside the shape, cropping parts of the image to fit.
  • RawFit: RawFit is similar to ‘Fit’ but uses PowerPoint’s cropping feature. This has better performance, but the image is not resized, which might result in a larger presentation.
  • RawFill: RawFill is similar to ‘Fill’ but uses PowerPoint’s cropping feature. This has better performance, but the image is not resized, which might result in a larger presentation.
  • Stretch: The image will stretch, changing the aspect ratio if necessary to fit.