This project provides a PowerShell script to extract images from a PowerPoint (.pptx) file. It leverages two main functions: one to unzip the PowerPoint file into its raw XML components (which includes a media folder), and another to extract the images from the media folder into a dedicated directory at the root of the project.
-
Clone the repository:
git clone https://https://github.com/cadensstudio/pptx-image-scraper.git cd pptx-image-scraper
-
Create a
.env
file:Copy the
.env.example
file to.env
and set theFILEPATH
variable to the path of your PowerPoint file.cp .env.example .env
Update the
FILEPATH
variable in the.env
file:FILEPATH=/path/to/your/powerpoint.pptx
-
Run the script:
Open a PowerShell terminal and execute the
extract.ps1
script:.\extract.ps1
-
Check the
media
folder for images:After running the script, the images will be available in the
media
directory wherever the script was run from.
This project is licensed under the MIT License - see the LICENSE file for details.