Skip to main content

Convert .pptx presentations to image files easily.

Project description

pptxtoimages

PyPI version License

Overview

pptxtoimages is a lightweight Python package to convert .pptx PowerPoint presentations into high-quality image files (PNG by default).
It uses LibreOffice (soffice) to convert .pptx files to PDF, then converts PDF pages to images using pdf2image.

This project aims to provide an easy-to-use, open-source tool for developers who need to quickly generate slide images from PowerPoint files for further processing, presentations, or video creation.


Features

  • Convert .pptx slides to images automatically
  • Output images saved in PNG format by default
  • Supports batch processing of multi-slide presentations
  • Cross-platform support (Windows, Linux, macOS) with LibreOffice installed
  • CLI support for quick command line usage

Installation

Make sure you have the following prerequisites installed:

  • LibreOffice (soffice command available in your system PATH)
  • Poppler utilities installed (poppler-utils on Linux)

Then install the package via pip:

    pip install pptxtoimages

Usage

Python

    from pptxtoimages.tools.convert import Converter

    # Initialize converter
    converter = Converter()

    # Convert your .pptx file to images
    images = converter.pptx_to_images("path/to/presentation.pptx", output_dir="output_images")

    print(f"Converted {len(images)} slides to images.")

Command Line Interface (CLI)

Convert a pptx file directly from the terminal :

    pptxtoimages-cli path/to/presentation.pptx --output output_images

Note : For more examples and details, please check the example.py file.


Configuration

  • Output image format is PNG by default, but can be customized in the Converter class parameters.

  • Output directory will be created if it does not exist.

Development

To contribute or develop locally:

  1. Clone the repository
  2. Create a virtual environment and activate it
  3. Install dependencies:
    pip install -r requirements.txt
  1. Use bump2version to manage versioning
  2. Run tests and linting (if any)
  3. Open a pull request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

Created by Burak Civelek

Feel free to reach out for questions or suggestions!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pptxtoimages-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pptxtoimages-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pptxtoimages-0.1.1.tar.gz.

File metadata

  • Download URL: pptxtoimages-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for pptxtoimages-0.1.1.tar.gz
Algorithm Hash digest
SHA256 206a17aadc0ae328e456ff564876a31a9d8aa0985d6bd7f3a26b08989aed9ccb
MD5 4734dbdadf0464266dcde94f95f2afe4
BLAKE2b-256 c4f0a39d98e8189ff4024c4d42950bd0dc7737331bbbe3f20549e4f76bc98961

See more details on using hashes here.

File details

Details for the file pptxtoimages-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pptxtoimages-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for pptxtoimages-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d695ee2eb700cc18c12af888a13adbacffcd95e64420689ed71a6317ec7c3b
MD5 9b9fdf9d76c9d9ef8b88eb0be81b5de1
BLAKE2b-256 75487bf475b687075552af533cfe1bce10ec17293343bf9ff152d567c55f20d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page