The Palos Publishing Company

Follow Us On The X Platform @PalosPublishing
Categories We Write About

Extract images from presentation slides

To extract images from presentation slides (e.g., PowerPoint .pptx files), you can follow one of these methods depending on your platform and tools:


Method 1: Extract Images from a .pptx File (Windows/Mac/Linux)

  1. Change the File Extension

    • Make a copy of your .pptx file.

    • Rename the file extension from .pptx to .zip (e.g., presentation.pptxpresentation.zip).

  2. Unzip the File

    • Right-click the .zip file and choose Extract All (Windows) or use Archive Utility (Mac).

    • Navigate to the unzipped folder:
      ppt -> media
      This folder contains all embedded images in their original resolution and format.


Method 2: Use PowerPoint’s Save As Feature

  1. Open the PowerPoint presentation.

  2. Click on File > Save As.

  3. Choose the location, then under Save as type, select JPEG File Interchange Format (*.jpg) or PNG Portable Network Graphics Format (*.png).

  4. Choose to export All Slides.

  5. PowerPoint will save each slide as an image, but not individual elements (i.e., it flattens everything).


Method 3: Manually Copy Images (Quick and Selective)

  1. Open the presentation in PowerPoint.

  2. Right-click on an image and select Save as Picture.

  3. Choose the format (e.g., PNG, JPG) and save it.


Method 4: Use a Script (Advanced, for batch extraction)

If you’re working with many files and want to automate this:

python
from pptx import Presentation import os prs = Presentation("your_presentation.pptx") output_dir = "extracted_images" os.makedirs(output_dir, exist_ok=True) image_count = 0 for slide in prs.slides: for shape in slide.shapes: if shape.shape_type == 13: # Picture image = shape.image image_bytes = image.blob image_ext = image.ext filename = f"image_{image_count}.{image_ext}" with open(os.path.join(output_dir, filename), 'wb') as f: f.write(image_bytes) image_count += 1 print(f"{image_count} images extracted.")

You need the python-pptx package:

bash
pip install python-pptx

Let me know your operating system or tools if you’d like the simplest approach tailored to you.

Share this Page your favorite way: Click any app below to share.

Enter your email below to join The Palos Publishing Company Email List

We respect your email privacy

Categories We Write About