Getting Started with the PowerPoint Writer: Images

Liz Sanderson
Liz Sanderson
  • Updated

FME Version

  • FME 2020.0


Images can be added to PowerPoints as their own slide or as a slide with text and a title. This tutorial is part two of six, and will look at how to add images to slides using the PowerPointStyler.



PowerpointWriter-2-Image-Begin.fmwt Beginning workspace

PowerpointWriter-2-Image-Complete.fmwt Completed workspace

street-food.jpg Data for step 1

VancouverOrtho.tif Data for step 2


Step-by-step Instructions

1. Open starting workspace

We’re going to add an image to our What is a Food Vendor slide. Open the PowerPointWriter-2-Images-Begin.fmwt workspace and then open the PowerPointSyler_2 parameters. Copy the text that is in the Body field then switch the Slide Type to Image Slide. Then set the Slide Subtype to Image with Title and Caption. The Title should already be populated but the Caption will need to be filled in. Paste the body text into the Caption field.

Next, set the Image Source to From File and browse to the street-food.jpg and then expand Hyperlink and set the Hyperlink Address to the Wikipedia page about street food.

Click OK.



Note: The PowerPointWriter-2-Images-Complete.fmwt and the other template workspaces in tutorials 3-6 have the street-food.jpg as a published parameter so the file could be included in the template.


2. Create overview map

Next, we are going to create an overview map of Vancouver using an orthophoto. It needs a bit of processing first before we can write it to the PowerPoint.

Add a TIFF Reader to the workspace and browse to the VancouverOrthphoto.tif file which can be found in, the default parameters are fine. If you inspect the orthophoto in the Data Inspector you will see a black border around the image, this is because the image was clipped which resulted in the black border containing no data. We will need to remove the border so it will look nice in our slideshow. For more detailed instructions please read the Setting NoData and Adding Alpha Bands to Remove Black Borders article.

Add a RasterSelector transformer to the canvas and connect it to the Tiff feature type. The default parameters are ok. Next, add a RasterBandNoDataSetter transformer and connect it to the RasterBandSelector. In the parameters set the NoData Value to 0.



3. Create image slide

Finally, add another PowerPointStyler to the canvas and connect it to the RasterBandNoDataSetter. In the parameters, change the Slide Type to Image Slide, then the Slide Subtype to Image with Title. Set the Title to Vancouver, BC. For Image Source set it to From Feature. This will use the Tiff we have connected to it.



4. Connect and Run Translation

Ensure all the PowerPointStylers are connected to the PowerPoint Writer and then run the translation. Save your workspace and continue on to the next tutorial, where we will be adding multiple slides containing tables.

In your output PowerPoint you should have four slides, here are what two of them look like:



Note: If when you open the completed PowerPoint and it is in Master View. Click the "Close Master View" button on the ribbon.


Data Attribution

The data used here originates from open data made available by the City of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.



Was this article helpful?



Please sign in to leave a comment.