# Convert PPSM to BMP in PHP

> Render PowerPoint PPSM slide show slides as BMP images in PHP with Aspose.Slides for PHP via Java.

Source: https://products.aspose.com/slides/php-java/conversion/ppsm-to-bmp/
Updated: 2026-08-11



## Convert PPSM to BMP in PHP

[*Aspose.Slides for PHP via Java*](/slides/php-java/) can load a PowerPoint PPSM slide show and render every slide as a BMP image without Microsoft PowerPoint.

Call `getImage` on each slide, then save the returned image with `ImageFormat::Bmp`. The example uses a scale factor of `2.0` for both dimensions.

You can install the library from [Composer](https://packagist.org/packages/aspose/slides) using the following command:

### Console/Terminal

```console
> composer require aspose/slides
```

## How to Convert PPSM to BMP in PHP

These are the steps to convert a PPSM file to BMP using PHP.

Load the PPSM file with the `Presentation` class.

For each slide, call `getImage` to render a BMP image.

Save each image to a separate file with `ImageFormat::Bmp`.

## System Requirements

Before running the PHP conversion example, make sure that you have the following prerequisites.

1. Install PHP 7 or later, add the PHP directory to the system `PATH`, and set `allow_url_include` to `On` in the `php.ini` file.
1. Install JRE 8 and set the `JAVA_HOME` environment variable to the installed JRE directory.
1. Install and configure Apache Tomcat with PHP/Java Bridge as described in the [installation guide](https://docs.aspose.com/slides/php-java/installation/).

### This sample code shows PPSM to BMP PHP Conversion

```php
$presentation = new Presentation("input.ppsm");
try {
    $slideCount = java_values($presentation->getSlides()->size());

    for ($slideIndex = 0; $slideIndex < $slideCount; $slideIndex++) {
        $slide = $presentation->getSlides()->get_Item($slideIndex);
        $slideImage = $slide->getImage(2.0, 2.0);

        try {
            $filePath = "slide_" . ($slideIndex + 1) . ".bmp";
            $slideImage->save($filePath, ImageFormat::Bmp);
        } finally {
            $slideImage->dispose();
        }
    }
} finally {
    $presentation->dispose();
}
```

## Save PPSM as BMP in PHP

Use the free app to see a demonstration of the PPSM to BMP conversion process.

## Other Supported Conversions

- [PPSM TO FODP](/slides/php-java/conversion/ppsm-to-fodp/) — Flat OpenDocument Presentation
- [PPSM TO GIF](/slides/php-java/conversion/ppsm-to-gif/) — Graphics Interchange Format
- [PPSM TO HTML](/slides/php-java/conversion/ppsm-to-html/) — Hypertext Markup Language
- [PPSM TO JPG](/slides/php-java/conversion/ppsm-to-jpg/) — JPEG Image
- [PPSM TO ODP](/slides/php-java/conversion/ppsm-to-odp/) — OpenDocument Presentation
- [PPSM TO OTP](/slides/php-java/conversion/ppsm-to-otp/) — OpenDocument Presentation Template
- [PPSM TO PDF](/slides/php-java/conversion/ppsm-to-pdf/) — Portable Document Format
- [PPSM TO PNG](/slides/php-java/conversion/ppsm-to-png/) — Portable Network Graphics
- [PPSM TO POT](/slides/php-java/conversion/ppsm-to-pot/) — PowerPoint 97-2003 Template
- [PPSM TO POTM](/slides/php-java/conversion/ppsm-to-potm/) — PowerPoint Macro-Enabled Template
- [PPSM TO POTX](/slides/php-java/conversion/ppsm-to-potx/) — PowerPoint Open XML Template
- [PPSM TO PPS](/slides/php-java/conversion/ppsm-to-pps/) — PowerPoint 97-2003 Slide Show
- [PPSM TO PPSX](/slides/php-java/conversion/ppsm-to-ppsx/) — PowerPoint Open XML Slide Show
- [PPSM TO PPT](/slides/php-java/conversion/ppsm-to-ppt/) — PowerPoint 97-2003 Presentation
- [PPSM TO PPTM](/slides/php-java/conversion/ppsm-to-pptm/) — PowerPoint Macro-Enabled Presentation
- [PPSM TO PPTX](/slides/php-java/conversion/ppsm-to-pptx/) — PowerPoint Open XML Presentation
- [PPSM TO SVG](/slides/php-java/conversion/ppsm-to-svg/) — Scalable Vector Graphics
- [PPSM TO SWF](/slides/php-java/conversion/ppsm-to-swf/) — Small Web Format
- [PPSM TO TIFF](/slides/php-java/conversion/ppsm-to-tiff/) — Tagged Image File Format
- [PPSM TO XPS](/slides/php-java/conversion/ppsm-to-xps/) — XML Paper Specification
