Convert PPSM Files to Animated GIF in Python

Export a macro-enabled PPSM slide show as a single animated GIF with Aspose.Slides for Python via Java.

Convert PPSM to GIF in Python

Aspose.Slides for Python via Java can load a macro-enabled PPSM slide show and export it as an animated GIF. The resulting file presents the slides as animation frames and can include slide transitions supported by the GIF exporter. Macros and interactive behavior are not included in the GIF, and Microsoft PowerPoint is not required.

Convert PPSM to GIF using Python

Create a Presentation from the PPSM file and call save with SaveFormat.Gif to create an animated GIF.

Python code for converting PPSM to animated GIF

presentation = Presentation("presentation.ppsm")
try:
    presentation.save("presentation.gif", SaveFormat.Gif)
finally:
    presentation.dispose()

How to convert PPSM to animated GIF in Python

Follow these steps to export a PPSM file as a single animated GIF.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Open the source PPSM file with Presentation.

  4. Call save with SaveFormat.Gif to generate the animated GIF.