PPTX Compressor for Openclaw

A high-performance CLI tool to compress PowerPoint presentations by optimizing embedded media and cleaning redundant data.

liyifm
v1.0.0
Apr 16, 2026
1
740
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ppt-compressor

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 ppt-compressor 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 Compressor?

This Openclaw Skills utility allows developers and users to significantly reduce the footprint of .pptx files. It works by extracting the presentation contents, applying lossy or lossless compression to images via Pillow, transcoding embedded videos using ffmpeg, and stripping unnecessary metadata before repackaging the file into an optimized ZIP structure.

Whether you are preparing a deck for email distribution or archiving massive presentation libraries, this skill provides a programmatic and highly configurable way to manage file sizes without manually editing every slide. It ensures that presentations remain compatible with standard PowerPoint software while being as lightweight as possible.

PPTX Compressor Use Cases

  • Reducing file size for email attachments or platforms with strict upload limits.
  • Optimizing media-heavy presentations for web viewing or mobile device playback.
  • Batch processing large libraries of historical presentations to save server storage space.
  • Stripping sensitive metadata, slide thumbnails, or internal comments before external sharing.

How PPTX Compressor Works

  1. The tool unzips the .pptx container to access internal media assets and XML structure.
  2. It identifies and processes embedded images based on user-defined quality levels and pixel dimensions.
  3. Embedded videos are detected and transcoded using ffmpeg to reduce bitrate and resolution according to the selected preset.
  4. Redundant data, such as document thumbnails and slide comments, are removed to shave off extra kilobytes.
  5. The optimized components are repacked into a standard .pptx file using high-ratio ZIP compression.

PPTX Compressor Setup

First, ensure you have the required image processing library installed:

pip install Pillow

For video compression support, install ffmpeg based on your operating system:

# Windows
winget install Gyan.FFmpeg

# macOS
brew install ffmpeg

# Linux
sudo apt install ffmpeg

Usage command:

python scripts/compress.py <input.pptx> [options]

PPTX Compressor Data Schema & Taxonomy

The skill operates on the internal Open XML Presentation format. The following table describes how data is handled:

Data Type Optimization Method Target Path
Images JPEG quality reduction and resizing via Pillow /ppt/media/
Videos Transcoding via ffmpeg (CRF/Scale) /ppt/media/
Metadata Stripping thumbnails and slide comments /docProps/ & /ppt/comments/
Structure Re-packing with optimized ZIP compression Output .pptx

PPTX Compressor Advanced Features

  • Four pre-defined compression tiers: low, medium, high, and extreme for quick workflows.
  • Granular control over JPEG quality (1-100) and maximum image dimensions.
  • Advanced video transcoding options including CRF (Constant Rate Factor) and x264 presets.
  • Support for converting non-transparent PNG files to JPEG to further minimize file size.
  • Option to strip document thumbnails and slide comments for cleaner distribution versions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*