# Convert PPSM to GIF in Python

> Convert PPSM files to animated GIF images in Python with Aspose.Slides for Python via Java.

Source: https://products.aspose.com/slides/python-java/conversion/ppsm-to-gif/
Updated: 2026-07-22



## Convert PPSM to GIF in Python

[**Aspose.Slides for Python via Java**](/slides/python-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

```python
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.

Install [**Aspose.Slides for Python via Java**](https://docs.aspose.com/slides/python-java/installation/).

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

Open the source PPSM file with `Presentation`.

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

## Convert PPSM to Other Supported Formats

- [PPSM TO PPTX](/slides/python-java/conversion/ppsm-to-pptx/)
- [PPSM TO PPT](/slides/python-java/conversion/ppsm-to-ppt/)
- [PPSM TO PDF](/slides/python-java/conversion/ppsm-to-pdf/)
- [PPSM TO HTML](/slides/python-java/conversion/ppsm-to-html/)
- [PPSM TO PNG](/slides/python-java/conversion/ppsm-to-png/)
- [PPSM TO BMP](/slides/python-java/conversion/ppsm-to-bmp/)
- [PPSM TO JPG](/slides/python-java/conversion/ppsm-to-jpg/)
- [PPSM TO FODP](/slides/python-java/conversion/ppsm-to-fodp/)
- [PPSM TO ODP](/slides/python-java/conversion/ppsm-to-odp/)
- [PPSM TO OTP](/slides/python-java/conversion/ppsm-to-otp/)
- [PPSM TO POT](/slides/python-java/conversion/ppsm-to-pot/)
- [PPSM TO POTM](/slides/python-java/conversion/ppsm-to-potm/)
- [PPSM TO POTX](/slides/python-java/conversion/ppsm-to-potx/)
- [PPSM TO PPS](/slides/python-java/conversion/ppsm-to-pps/)
- [PPSM TO PPSX](/slides/python-java/conversion/ppsm-to-ppsx/)
- [PPSM TO PPTM](/slides/python-java/conversion/ppsm-to-pptm/)
- [PPSM TO SVG](/slides/python-java/conversion/ppsm-to-svg/)
- [PPSM TO TIFF](/slides/python-java/conversion/ppsm-to-tiff/)
