pptx-to-image for Openclaw

A Windows-based CLI tool that converts PowerPoint presentations into high-resolution images while perfectly maintaining original proportions.

leodai12123
v1.0.0
Mar 20, 2026
0
937
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pptx-to-image

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pptx-to-image using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is pptx-to-image?

The pptx-to-image skill is a specialized utility designed for developers and power users who need to transform PowerPoint (PPTX) files into professional-grade images. By leveraging the PowerPoint COM interface, it ensures that every slide is captured with high fidelity, supporting resolutions from 72 to 600 DPI.

This tool is particularly valuable for creating high-quality previews, digital signage content, or assets for web development where standard export tools fall short. It automatically handles orientation detection (Portrait or Landscape) and provides detailed validation reports for every exported file, making it a robust addition to the Openclaw Skills ecosystem.

pptx-to-image Use Cases

  • Generating high-definition slide previews for web applications or portfolios.
  • Converting presentation decks into high-quality image sequences for video editing.
  • Automating the creation of social media assets from PowerPoint templates.
  • Archiving presentation materials in lossless PNG format with specific DPI requirements.

How pptx-to-image Works

  1. The script initializes a connection to the Microsoft PowerPoint COM interface via pywin32.
  2. It opens the specified input PPTX file and retrieves the original page dimensions in points.
  3. The tool calculates target pixel dimensions based on the user-defined DPI setting using the formula: $pixels = points \times (DPI / 72)$.
  4. It iterates through each slide in the presentation, applying orientation-aware scaling.
  5. The Slide.Export() method is called to generate JPG or PNG files at the exact calculated resolution.
  6. A detailed summary report is generated, including file sizes and dimension verification for each output image.

pptx-to-image Setup

This skill requires a Windows environment with Microsoft PowerPoint 2010 or newer installed.

# Install the required Python dependency
pip install pywin32

# Basic usage command
py pptx_to_image.py --input presentation.pptx --output ./slides --dpi 300

pptx-to-image Data Schema & Taxonomy

The skill organizes output in a structured directory format. Metadata and logs are provided via the CLI output during execution.

Attribute Description
Output Directory User-defined folder (defaults to ./output)
File Naming Sequential naming convention: slide_001.jpg, slide_002.jpg, etc.
Image Metadata Embedded DPI information and orientation based on source PPTX
Reporting Console-based logs showing original points, target pixels, and final file size

pptx-to-image Advanced Features

  • Custom DPI Scaling: Support for granular control between 72 and 600 DPI for various output needs.
  • Aspect Ratio Preservation: Automatic detection of slide dimensions to prevent stretching or distortion.
  • Quality Compression Control: Adjustable JPG quality settings (1-100) to balance file size and visual clarity.
  • Verbose Debugging: A verbose mode for detailed technical insights into the COM interface lifecycle and coordinate calculations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*