This feature makes it possible to insert images into a specific shape in PowerPoint. The image that should be inserted must be saved in Content\BaseExtensions in the client's SDUP, and then we define which image that should be inserted into specific shape(s) on specific layout(s).
The configuration is inspired by our feature to find a shape and bring it to front.
CMD
<Cmd case="BaseExtensions:insert-image-in-shape-on-layout"/>
Parameters
useFill
Define whether the inserted image should fill the shape using true
or false
. If the parameter is set to false
, it will fit the shape instead.
layout-x-name
Define the name of the custom layout where the image should be inserted. Replace x
with the layout index that the shape name and image path refer to, counting from 1.
shape-x-name-y
Define the name of the shape on the custom layout. Replace x
with the layout index and y
with the shape index that the image path refers to, counting from 1.
replacement-x-path-y
Define the path to the image that should be inserted into the shape. Replace x
with the layout index and y
with the shape index. The functionality will automatically look into Content\BaseExtensions.
Example of usage
As we use index' in the parameters, it is possible to insert multiple images at a time. The two examples below illustrate how we can refer to multiple layouts and shapes and thus use this feature as a tool to change the theme throughout the entire presentation.
You can try it out yourself with attached image folder and presentation. Otherwise, you can take a look at Givaudan's solution.
<Button label="Insert Boat">
<Cmd case="BaseExtensions:insert-image-in-shape-on-layout" useFill="true"
layout-1-name="Title Slide"
shape-1-name-1="Grafik 8"
replacement-1-path-1="Images/Boat/Logo.png"
layout-2-name="Title Slide, Image on the Right"
shape-2-name-1="Grafik 8"
replacement-2-path-1="Images/Boat/Logo.png"
shape-2-name-2="Bildplatzhalter 7"
replacement-2-path-2="Images/Boat/ManOnBoat.jpg"
layout-3-name="Title Slide, Image at Bottom"
shape-3-name-1="Grafik 8"
replacement-3-path-1="Images/Boat/Logo.png"
shape-3-name-2="Bildplatzhalter 7"
replacement-3-path-2="Images/Boat/ManOnBoatBanner.jpg"
layout-4-name="Chapter Slide with Image"
shape-4-name-1="Bildplatzhalter 5"
replacement-4-path-1="Images/Boat/ManOnBoatBig.jpg"
layout-5-name="Chapter Slide white with Image"
shape-5-name-1="Bildplatzhalter 5"
replacement-5-path-1="Images/Boat/ManOnBoatBig.jpg"
/>
</Button>
<Button label="Insert Barista">
<Cmd case="BaseExtensions:insert-image-in-shape-on-layout" useFill="true"
layout-1-name="Title Slide"
shape-1-name-1="Grafik 8"
replacement-1-path-1="Images/Barista/Logo.png"
layout-2-name="Title Slide, Image on the Right"
shape-2-name-1="Grafik 8"
replacement-2-path-1="Images/Barista/Logo.png"
shape-2-name-2="Bildplatzhalter 7"
replacement-2-path-2="Images/Barista/ManSmellingCoffee.jpg"
layout-3-name="Title Slide, Image at Bottom"
shape-3-name-1="Grafik 8"
replacement-3-path-1="Images/Barista/Logo.png"
shape-3-name-2="Bildplatzhalter 7"
replacement-3-path-2="Images/Barista/ManSmellingCoffeeBanner.jpg"
layout-4-name="Chapter Slide with Image"
shape-4-name-1="Bildplatzhalter 5"
replacement-4-path-1="Images/Barista/ManSmellingCoffeeBig.jpg"
layout-5-name="Chapter Slide white with Image"
shape-5-name-1="Bildplatzhalter 5"
replacement-5-path-1="Images/Barista/ManSmellingCoffeeBig.jpg"
/>
</Button>
Comments
0 comments
Article is closed for comments.