Need to extract images from PowerPoint presentations for data analysis, archiving, or automation? The GroupDocs.Parser Cloud SDK for Node.js enables developers to quickly extract embedded images from .ppt and .pptx files using simple REST API calls. No Office installation or complex parsing logic required.

Why Extract Images from PowerPoint?

  • Isolate visual content (logos, icons, charts, photos).
  • Archive presentations as structured assets.
  • Enable content indexing or computer vision workflows.
  • Automate media extraction from bulk slides.

In this article, we are going to cover the following topics:

PowerPoint Image Extraction API

The GroupDocs.Parser Cloud SDK for Node.js simplifies working with presentation files. It allows you to:

  • Extract images from specific or all slides.
  • Retrieve structured content like slide metadata or layout.
  • Work with other formats (Word, Excel, PDF, ZIP, etc.).

Prerequisites

npm install groupdocs-parser-cloud
  • For more information on client credentials, please visit this article.

How to Extract Images from PowerPoint using Node.js

Follow these steps to develop your own image extractor from PowerPoint presentation using Node.js API:

Step 1: Initialize Configuration.

const { ParserApi, Configuration, ImagesRequest, FileInfo, ImagesOptions } = require("groupdocs-parser-cloud");

const config = new Configuration("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET");
const parserApi = new ParserApi(config);

Step 2: Setup File Info and Image Options. Initialize an object of the ImagesRequest class and pass the instance of the ImagesOptions class.

const fileInfo = new FileInfo();
// path to your PowerPoint file
fileInfo.filePath = "sample.pdf";

const options = new ImagesOptions();
options.fileInfo = fileInfo;

const request = new ImagesRequest(options);

Step 3: Extract Images from PowerPoint. Invoke the images method to extract images from a PowerPoint presentation.

parserApi.images(request).then((response) => {
    console.log("Images extracted successfully.");
    console.log(response.images);
}).catch((err) => {
    console.error("Failed to extract images:", err);
});

Extract Images from PowerPoint via cURL

You can also extract images using GroupDocs.Parser REST API and cURL.

Step 1 – Generate Access Token:

curl -X POST "https://api.groupdocs.cloud/connect/token" \
-d "grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET" \
-H "Content-Type: application/x-www-form-urlencoded"

Step 2 – Extract Images via REST API:

curl -v -X POST "https://api.groupdocs.cloud/v1.0/parser/images" \
-H  "accept: application/json" \
-H  "authorization: Bearer {ACCESS_TOKEN}" \
-H  "Content-Type: application/json" \
-d "{  \"FileInfo\": {    \"FilePath\": \"input.pptx\",    \"StorageName\": \"internal\"  },  \"OutputPath\": \"internal\",  \"StartPageNumber\": 1,  \"CountPagesToExtract\": 2}"
  • Replace <ACCESS_TOKEN> with the one you generated.

✅ Benefits of Using cURL

  • Ideal for headless environments.
  • Scriptable for CI/CD pipelines.
  • No SDK installation required.
  • Platform-agnostic (Linux/macOS/Windows).

Free PowerPoint Image Extractor

Don’t want to write code? Try the Free online PowerPoint Image Extractor powered by GroupDocs.Parser Cloud.

Online Image Extractor

Conclusion

With GroupDocs.Parser Cloud SDK for Node.js, extracting images from PowerPoint files becomes fast and scalable. Whether you’re working on presentation archives, AI pipelines, or CMS integrations — this REST API gives you complete control over visual content extraction.

📚 Additional Resources

Frequently Asked Questions – FAQs

Can I extract images from specific slides only?

  • Yes. You can define StartPageNumber and CountPagesToExtract for precise control.

Are images returned in original resolution?

  • Yes, the API provides original quality images embedded in the presentation.

Is PowerPoint required to run this?

  • No. Everything runs in the cloud without needing MS Office.

Is a free trial available?

  • Yes. New accounts get 150 free API calls/month. For further information, please visit pricing guide.