Skip to main content

A tool to convert PNG images to a PPTX presentation with a 16:9 aspect ratio.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

png_to_pptx-0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

png_to_pptx-0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file png_to_pptx-0.1.tar.gz.

File metadata

  • Download URL: png_to_pptx-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for png_to_pptx-0.1.tar.gz
Algorithm Hash digest
SHA256 f6cf12622c7a6209b85c85a1026bfa985e9d690f84f1dde9b6ed578b95e28886
MD5 d8194b25548042edb94fb640a25c971f
BLAKE2b-256 23a8b8ef61f7b3e713ff1051e3e7ebf872d4e7e08dcc365f1a49e50114c3ac28

See more details on using hashes here.

File details

Details for the file png_to_pptx-0.1-py3-none-any.whl.

File metadata

  • Download URL: png_to_pptx-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for png_to_pptx-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef72c713a3038c7a75d2860e97185fc5cc3cecf642ffd5822f558eebd0b58af4
MD5 3ca2da2e0bed5df358a19d36dd3cb1f5
BLAKE2b-256 b0b6727973be58fab54931ef4fc0e16fbe8f4b750967157ed0ccdf1d34190c5b

See more details on using hashes here.

Supported by

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