Skip to main content

PNG to PPTX Converter

png_to_pptx is a Python package designed to convert PNG images into a PowerPoint (PPTX) presentation with a 16:9 aspect ratio. This tool is useful for quickly creating presentations from a set of PNG images.

Features

  • Converts PNG images to a PPTX presentation.
  • Maintains a 16:9 aspect ratio for slides.
  • Simple and easy-to-use API.

Installation

You can install png_to_pptx via pip:

pip install png_to_pptx

Usage

To convert PNG images to a PPTX presentation, use the pngs_to_pptx_16x9 function. Here's a basic example:

from png_to_pptx import pngs_to_pptx_16x9

# Path to the folder containing PNG images
png_folder = "path/to/png_folder"

# Path where the PPTX file will be saved
pptx_file = "path/to/output_presentation.pptx"

# Convert PNG images to PPTX
pngs_to_pptx_16x9(png_folder, pptx_file)

Parameters

  • png_folder (str): The path to the folder containing PNG images.
  • pptx_file (str): The path where the resulting PPTX file will be saved.

Example

Suppose you have a folder named images with PNG files and you want to create a PowerPoint presentation named presentation.pptx:

from png_to_pptx import pngs_to_pptx_16x9

png_folder = "images"
pptx_file = "presentation.pptx"

pngs_to_pptx_16x9(png_folder, pptx_file)

This will create a PowerPoint presentation where each PNG image is placed on a slide with a 16:9 aspect ratio.

Acknowledgements

  • python-pptx for handling PowerPoint file operations.
  • Pillow for image processing.

Metadata

Release files for png-to-pptx 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for png-to-pptx 0.1
File Size Uploaded
png_to_pptx-0.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for png-to-pptx 0.1
File Interpreter ABI Platform
png_to_pptx-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / png_to_pptx-0.1.tar.gz

Download URL png_to_pptx-0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6cf12622c7a6209b85c85a1026bfa985e9d690f84f1dde9b6ed578b95e28886
BLAKE2b-256 checksum
How to use checksums
23a8b8ef61f7b3e713ff1051e3e7ebf872d4e7e08dcc365f1a49e50114c3ac28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / png_to_pptx-0.1-py3-none-any.whl

Download URL png_to_pptx-0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef72c713a3038c7a75d2860e97185fc5cc3cecf642ffd5822f558eebd0b58af4
BLAKE2b-256 checksum
How to use checksums
b0b6727973be58fab54931ef4fc0e16fbe8f4b750967157ed0ccdf1d34190c5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page