首页龙虾技能列表 › 一键生成PPT截图和缩略图工具发布到微信去的工具,MAC版本 — 技能工具

一键生成PPT截图和缩略图工具发布到微信去的工具,MAC版本 — 技能工具

v1.0.0

自动将指定Mac路径下的PPT按页生成截图和缩略图,并发布到微信公众号,支持自定义配置和参数调整。

0· 295·0 当前·0 累计
by @zhaoxm8023·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/10
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
high confidence
The skill does what it claims: converts a PPT to images/thumbnails and publishes to the official WeChat APIs using credentials supplied in config.json; no unrelated credentials, endpoints, or hidden behavior were found.
评估建议
This skill appears internally consistent and implements the stated workflow. Before installing/using it: (1) Verify you have LibreOffice (soffice) and Ghostscript installed and configured paths in config.json. (2) Replace the placeholder wechat_appid and wechat_appsecret in config.json with your real credentials and keep that file private (do not commit it to git). (3) Understand the script will upload images to your WeChat account using those credentials—only run it with credentials you control...
详细分析 ▾
用途与能力
Name/description match the implementation: code converts PPT→PDF via LibreOffice, PDF→PNG via Ghostscript, builds thumbnails, and uploads/publishes to WeChat API endpoints. Required binaries (LibreOffice, Ghostscript) and Python libs (Pillow, requests) are appropriate for the task.
指令范围
SKILL.md instructs the user to set ppt_dir/ppt_file and WeChat credentials in config.json and to install ghostscript and pillow. The runtime code only reads config.json, the specified PPT file, and calls the official WeChat API endpoints (api.weixin.qq.com); it does not access unrelated system files or unusual network endpoints.
安装机制
There is no automated installer. SKILL.md recommends brew install ghostscript and pip3 install pillow — standard, low-risk instructions. No downloads from unknown hosts or archive extraction are present.
凭证需求
The skill does not request environment variables but expects WeChat appid/secret in config.json. That is functionally appropriate, but storing secrets in a plaintext config file is a security consideration: do not commit config.json to source control and protect access to the file.
持久化与权限
Skill is not always-enabled and does not modify other skills or system-wide configuration. It runs on demand and only uses local files and network calls to the WeChat API.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/5

ppt2wechat 1.0.0 – Initial Release - Automatically converts each slide of a specified PPT to a PNG screenshot and generates 3x3 thumbnails. - Publishes the generated images to a designated WeChat official account using user-provided credentials. - Customizable settings through config.json, including PPT location, output DPI, grid layout, and external tool paths. - Supports PPT to PDF (LibreOffice) and PDF to PNG (Ghostscript) workflow on macOS. - Requires prior installation of Ghostscript and Pillow.

● 可疑

安装命令 点击复制

官方npx clawhub@latest install ppt2wechat
镜像加速npx clawhub@latest install ppt2wechat --registry https://cn.clawhub-mirror.com

技能文档

\--- name: ppt2wechat description: mac系统某路径下某名字的PPT自动按页生成每一张截图和缩略图,然后发布到微信公众号上 \---

1、提示词输入:

例如,使用 ppt2png skill , MAC系统,桌面路径下10只小青蛙迎接春天.pptx,帮我生成图片和3行3列的缩略图,然后发布到微信公众号。我的微信公众号密钥:wechat_appid=XXX,wechat_appsecret=XXX

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、工作流程

主程序:ppt2wechat.py

配置文件:config.json

自动读取配置

支持修改 DPI、列数、行数、LibreOffice 路径、gs 路径

针对config.json 如果 which gs 输出是: /opt/homebrew/bin/gs

就改成:

"ghostscript_path": "/opt/homebrew/bin/gs"

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务