# Convert PPT to JPEG Using C++

> C++ conversion code for PPT to JPEG. Use the example code for batch PPT to JPEG conversion in C++ applications.

Source: https://products.aspose.com/slides/cpp/conversion/ppt-to-jpeg/
Updated: 2026-08-11



## Convert PPT to JPEG Using C++

[Aspose.Slides for C++](/slides/cpp/) is a PowerPoint processing API that lets you convert PPT presentations to JPEG in C++ applications without Microsoft PowerPoint. Install the library from [NuGet](https://www.nuget.org/packages/Aspose.Slides.Cpp/) or download it from the [Aspose.Slides for C++ releases page](https://releases.aspose.com/slides/cpp/).

### Command

```powershell
PM> Install-Package Aspose.Slides.Cpp
```

## How to Convert PPT to JPEG via C++

Render a slide from a PPT presentation to JPEG with a few lines of C++ code.

1.  Create a `Presentation` instance from the source PPT file.
1.  Get the first slide from the presentation.
1.  Set the output image dimensions with `Size`.
1.  Call `GetImage` to render the slide.
1.  Save the rendered image with `ImageFormat::Jpeg`.

## System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

- Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
- Aspose.Slides for C++ referenced in your project.

### PPT to JPEG C++ Conversion Source Code

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");
auto slide = presentation->get_Slide(0);

auto desiredSize = Size(1200, 800);
auto image = slide->GetImage(desiredSize);
image->Save(u"slide.jpeg", ImageFormat::Jpeg);
image->Dispose();

presentation->Dispose();
```

## Other Supported Conversions

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