Skip to content

A Python script to create PowerPoint presentations from image files. Easy conversion, auto slide resizing, and simple usage.

License

Notifications You must be signed in to change notification settings

c2-tlhah/images-to-pptx-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Presentation Creator from Image Files

This Python script allows users to create a PowerPoint presentation (.pptx) from a series of image files. Each image file is added to individual slides in the presentation. The dimensions of the presentation slides are automatically set based on the dimensions of the first image.

Requirements

  • Python 3.x
  • pptx library
  • PIL (Python Imaging Library) for image processing

Installation

  1. Ensure you have Python installed on your system. You can download it from Python's official website.

  2. Install the required libraries using pip:

    pip install python-pptx pillow

Usage

  1. Place all the image files you want to include in the presentation in the same directory as the script.

  2. Open a terminal or command prompt and navigate to the directory containing the script and image files.

  3. Run the script using the following command:

    python presentation_creator.py
  4. The script will generate a PowerPoint presentation file named Created_Presentaion.pptx in the same directory.

Notes

  • The script assumes that all image files in the directory are intended to be added to the presentation. Ensure that only the relevant image files are present in the directory.
  • The layout of each slide in the presentation is determined by the layout at index 5 (presentation.slide_layouts[5]). You can modify this index to use a different layout as per your requirement.

Troubleshooting

  • If there are any errors during the execution of the script, ensure that all dependencies are installed correctly and that the image files are accessible from the script's directory.

Example

Suppose you have the following image files in your directory:

image1.PNG
image2.PNG
image3.PNG

Running the script will create a PowerPoint presentation (Created_Presentaion.pptx) with each image on a separate slide.

python presentation_creator.py

About

A Python script to create PowerPoint presentations from image files. Easy conversion, auto slide resizing, and simple usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages