一键生成PPT截图和缩略图工具,MAC版本: Claude skill | implexaback to search一键生成PPT截图和缩略图工具,MAC版本
自动将Mac版PPT转换为每页PNG截图及每6页缩略拼接图,支持自定义DPI和布局,自动分目录管理。
SKILL.md
ppt2png
1、提示词输入:
mac系统某路径下某名字的PPT自动按页生成每一张截图和缩略图
例如:MAC系统,XXX路径下XXXPPT,帮我生成图片和3行3列的缩略图
2、config.json配置说明:
路径赋值给config.json 下的 ppt_dir
名字赋值给ppt_file
需要用户说明自己的wechat_appid,wechat_appsecret
微信公众号如需更改作者也可以更改:wechat_author
3、skill实现说明:
基于PPT → PDF(使用 LibreOffice)
PDF → 每页 PNG(使用 Ghostscript)
每 9张图片生成 1 张缩略拼接图(3列 × 3行),可通过调整thumbnail_cols列,thumbnail_rows行来实现
兼容 Python 3.6
4、需要提前安装:
brew install ghostscript
pip3 install pillow
5、工作流程
主程序:ppt2png.py
配置文件:config.json
自动读取配置
支持修改 DPI、列数、行数、LibreOffice 路径、gs 路径
针对config.json
如果 which gs 输出是:
/opt/homebrew/bin/gs
就改成:
"ghostscript_path": "/opt/homebrew/bin/gs"
related skills
semantically similar in the cross-vendor indexdon't have the plugin yet? install it then click "run inline in claude" again.
+concrete implementation stack (libreoffice, ghostscript, pillow) with actual tool names and versions+configurable output (dpi, grid dimensions, tool paths) allowing environment adaptation+clear prerequisite setup (brew/pip install commands provided)weaknesses
- ~procedure is fragmented across sections without numbered steps or explicit input-output contracts per stage
- ~no failure handling documented (missing files, corrupted ppt, ghostscript path resolution, pdf conversion errors, memory limits for large presentations)
- ~example trigger phrase is vague template (xxx placeholders) rather than specific natural language variants