Convert JPG to PPTX in C++

Powerful cross-platform C++ API for converting JPG to PPTX using C++ code

Convert JPG to PPTX using Aspose.Slides

Aspose.Slides for C++ is a powerful C++ library used to create, convert, and manipulate PowerPoint presentations, PDFs, HTML docs, and other files. When you convert JPG to PPTX, you are essentially creating a PowerPoint presentation that contains slides based on JPG images.

Convert JPG to PPTX in C++

Using Aspose.Slides for C++ , you can convert JPG image to PowerPoint presentation with just a few lines of code:

C++ code for converting JPG to PPTX

auto pres = System::MakeObject<Presentation>();

auto slide = pres->get_Slides()->idx_get(0);
auto image = pres->get_Images()->AddImage(File::ReadAllBytes(u"image.jpg"));
slide->get_Shapes()->AddPictureFrame(ShapeType::Rectangle, 10.0f, 10.0f, 100.0f, 100.0f, image);

pres->Save(u"pres.pptx", SaveFormat::Pptx);

How to convert JPG to PPTX in C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Add the library as a reference in your project.

  3. Create an instance of the Presentation class.

  4. Load the JPG image you want to convert to PPTX.

  5. Save the resulting file as a PPTX presentation.

Free Online Converter

How to Convert PPT to HTML in Python

Other Supported PowerPoint Conversions

You can also convert files in other formats to PowerPoint