TopRank Skills

Home / Claw Skills / 其他 / ppt-compress
Official OpenClaw rules 15%

ppt-compress

Compress PPT/PPTX file size. Decompress PPT, compress large images, repackage and convert to PDF to significantly reduce file size. Suitable for scenarios where large PPT files need to be shared or uploaded.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 ppt-compress 技能。 若已安装,则直接安装 ppt-compress 技能。

Overview

Skill Key
accidwar/ppt-compress
Author
accidwar
Source Repo
openclaw/skills
Version
-
Source Path
skills/accidwar/ppt-compress
Latest Commit SHA
569958de3d30a15c43746910da8dad272e9d44d8

Extracted Content

SKILL.md excerpt

# PPT压缩 / PPT Compression

将大型PPT/PPTX文件压缩为更小的PDF版本。
Compress large PPT/PPTX files into smaller PDF versions.

## Workflow

1. **Decompress PPT** - PPTX is essentially a ZIP, decompress to extract media files
   
2. **Compress Images** - Use sips to compress images larger than 1MB
   
3. **Repackage** - Repackage as PPTX

4. **Convert to PDF** - Use LibreOffice to convert to PDF

## Usage

Run the compression script:

```bash
python3 ~/clawd/skills/ppt-compress/scripts/compress.py <pptx_file_path> [output_directory]
```

## Examples

```bash
# Compress PPT and convert to PDF
python3 ~/clawd/skills/ppt-compress/scripts/compress.py "/path/to/file.pptx"

# Specify output directory
python3 ~/clawd/skills/ppt-compress/scripts/compress.py "/path/to/file.pptx" "/Users/xxx/Downloads"
```

## Dependencies

- Python 3
- sips (built-in to macOS)
- LibreOffice (used for PDF conversion)

Install LibreOffice: `brew install libreoffice`

Related Claw Skills