PPT Compressor

👤 accidwar 📦 v1.0.3 ⭐ 4.3 ⬇️ 1.6K 下载
📄 办公效率 免费

📖 技能介绍

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

    来源于7w4.net。

Usage

Run the compression script:

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

Examples

# 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

🤖 AI 评测

这是一个实用且完成度较高的 PPT 压缩工具,操作简单、效果直观,能有效减小大文件体积。说明清晰、使用流程顺畅,但依赖 LibreOffice 这一额外软件,且压缩质量固定为60档位,不够灵活。如果你经常需要分享大型 PPT 文件,这个工具值得一试。

📊 多维度评分

适应性4.6
规范性4.1
有效性4
可靠性4.3
可信度4.7

📁 包含文件 (3 个)

📄 SKILL.md 1.2 KB
📄 _meta.json 131 B
📄 scripts/compress.py 7 KB