Probably you want to use your presentation slides within web applications or you want to use its slides thumbnails. In such cases, you need to convert your PowerPoint presentation slides to images. In this article, you will learn how to convert the PPT or PPTX presentations into JPG and PNG image files programmatically using C#.

Convert PPT to JPG or PNG Image using .NET

The following topics are discussed here:

.NET API to Convert Presentations

GroupDocs.Conversion showcases .NET API that allows conversion of presentation files to images within .NET applications. In this article, we will use its GroupDocs.Conversion for .NET to convert the PPT/PPTX presentations to images formats. Additionally, the API supports the conversion of many other file formats like word-processing documents, spreadsheets, presentations, eBooks, images, and many others that are mentioned in the documentation.

You can download the DLLs or MSI installer from the downloads section or install the API in your .NET application via NuGet.

PM> Install-Package GroupDocs.Conversion

Convert Presentation to JPG Image using C#

Let’s quickly jump to the objective and transform our presentations into image formats. The following steps show how to convert the Powerpoint PPT or PPTX to JPG image format in C#.

  • Load the presentation file using Converter class.
  • Prepare the image conversion options using ImageConvertOptions class.
  • Define the conversion file format as JPG.
  • Convert to image using Convert() method.

The following C# source code converts the PowerPoint presentation to JPG format.

Convert Presentation to PNG Image using C#

One of the most in-use image formats is PNG. Let’s convert our slides into PNG in a similar way. The following steps guide how to convert the Powerpoint PPT or PPTX to PNG image format in C#.

The following C# code example converts the PowerPoint presentation to PNG format.

Get a Free API License

You can get a free temporary license to use the API without the evaluation limitations.

Conclusion

To conclude we learned how presentations can be converted to JPG or PNG Images formats in C#. To build your own conversion application, you may learn more about the Conversion Automation .NET API using the documentation. The best way is to experience the examples that are available on GitHub. Contact us for any query via the forum.

See Also