# Convert ODP to BMP in PHP

> Convert ODP presentation slides to BMP images in PHP with Aspose.Slides for PHP via Java.

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



## Convert ODP to BMP in PHP

Use [*Aspose.Slides for PHP via Java*](/slides/php-java/) to load an ODP presentation and render each slide as a BMP image.

Call `getImage` for each slide and save the rendered image with `ImageFormat::Bmp`. You can also test ODP conversion in your [browser](https://products.aspose.app/slides/conversion).

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 ODP to BMP in PHP

These are the steps to convert an ODP file to BMP using PHP.

Load the ODP file with the `Presentation` class.

Access each slide through a variable and render it with `getImage`.

Save each rendered slide 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 ODP to BMP PHP Conversion

```php
$presentation = new Presentation("input.odp");
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 ODP as BMP in PHP

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

## Other Supported Conversions

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