Insert an image

The InsertImage instruction replaces a shape in your template with an image. You specify the name of the shape to replace and the URL of an image to insert in its place. An image can be either a .png, .jpeg, or .svg file, which like .pptx assets must be accessible by the server at the link you provide. The image will keep its aspect ratio and transparency. The optional crop parameter controls whether the image is scaled to "fit" within the placeholder rectangle or to "fill" it completely. The default is "fit".

+

Logo image

Acme logo
acme-logo.png

Tailored presentation

Acme logo inserted
logo-inserted.pptx

Here's an example template with a rectangular placeholder where we'll insert a customer logo .png. In the tailoring instructions we specify the shape name, not the text within the placeholder box.

Run this shell command to insert the logo image into the template. It will download a logo-inserted.pptx file to your current directory.