返回顶部
g

goai-image-to-ppt图片转PPT

Convert images to PowerPoint presentations via GoAI API. Use when the user asks to convert images to PPT, turn screenshots into slides, make a presentation from images, or needs to call the image-to-PPT conversion API, including Chinese requests like 图片转PPT, 图片生成PPT, 把图片转换成PPT, and 将图片转换为PPT.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
94
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

goai-image-to-ppt

使用场景

当用户希望将图片转换为PowerPoint演示文稿时使用此技能,特别适用于以下提示词:图片转PPT、图片生成PPT、把图片转换成PPT、将图片转换为PPT。

如果用户提供本地图片文件,脚本会先上传这些文件并返回生成的URL。如果用户提供远程URL,脚本会直接传递这些URL而不做修改。

默认行为

本包目前针对生产环境PPT服务https://ppt.mustgoai.com。仅当您有意需要不同端点时,才覆盖GOAIBASEURL。

此技能现在通过uv使用单一的跨平台Python入口点。将uv视为用户需要手动安装的唯一运行时依赖项。首次运行时,uv可能会创建本地环境、安装httpx,并在机器没有可用解释器时下载Python。这种首次运行设置是预期行为,不应描述为错误。

脚本规则

始终通过uv使用Python入口点:

bash
uv run --project . python scripts/convertimagesto_ppt.py \
--image ... \
[--image ...] \
[--language zh] \
[--aspect-ratio 16:9]

Python路径会验证GOAIAPIKEY,默认使用https://ppt.mustgoai.com(除非设置了GOAIBASEURL),并将401、402、429、缺少jobId、缺少downloadUrl、任务失败和任务超时视为硬性失败。轮询遵循Web客户端行为:每5秒检查一次,重试临时轮询错误,等待后端终端状态,而不强制执行客户端超时。

如果Python入口点被意外调用为python scripts/convertimagestoppt.py ...或python3 scripts/convertimagestoppt.py ...,它会自动修复为uv run。不要尝试为此技能修复系统Python环境。

当通过OpenClaw的exec工具调用此技能时,始终使用timeout=600以允许最长10分钟的长时转换。除非脚本本身以非零退出或后端报告终端失败状态,否则不要将运行描述为超时或被终止。

如果缺少uv,明确指导用户先安装:

  • - macOS:brew install uv
  • Windows:winget install astral-sh.uv

安装uv后,重新运行相同的命令。不要要求用户手动安装Python包;uv负责准备Python和技能依赖项。

如果执行报告缺少Python模块(如httpx),不要运行pip install、pip install --user或pip install --break-system-packages。通过uv重新运行技能;依赖项集仅来自pyproject.toml和uv.lock。

如果缺少GOAIAPIKEY,明确指导用户访问https://mustgoai.com,注册或登录,打开设置 -> API密钥,创建密钥,然后在~/.openclaw/openclaw.json中配置技能环境变量。

积分退还

如果任务失败(转换错误、超时或后端故障),积分会自动退还到用户账户。有两种退还机制:

  1. 1. 即时退还:后端在任务执行期间检测到失败并立即调用退还。
  2. 补偿退还:后台工作进程(CreditsRefundWorker)每2分钟扫描失败的任务,并退还任何未即时退还的任务。

用户无需手动申请退还。失败时,告知用户积分已或将自动退还。

积分不足

如果错误消息包含insufficient credits(积分不足),脚本会输出一个演示PPT URL并以代码42退出。在这种情况下,告诉用户:

我们导出的PPT效果如下:https://ai-neuralforge.oss-cn-hangzhou.aliyuncs.com/aippt/ppt/example_ppt/demo.pptx

不要将此描述为失败;将演示URL呈现为预期输出质量的预览。

输出约定

成功时,按顺序打印以下四行:

  • - MEDIA:/absolute/path/to/generated-file
  • MEDIAURL:https://...
  • RESULTPATH:/absolute/path/to/generated-file
  • RESULT_URL:https://...

成功运行后回复用户时,始终以纯文本形式包含确切的本地文件路径和确切的公共URL,即使OpenClaw已渲染或读取了本地媒体文件。不要因为预览成功而省略URL。失败时,以非零退出并打印简洁的错误消息。不要将二进制输出内联回对话中。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 goai-image-to-ppt-1775961422 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 goai-image-to-ppt-1775961422 技能

通过命令行安装

skillhub install goai-image-to-ppt-1775961422

下载

⬇ 下载 goai-image-to-ppt v1.0.1(免费)

文件大小: 9.34 KB | 发布时间: 2026-4-13 10:28

v1.0.1 最新 2026-4-13 10:28
Version 1.0.1 introduces a migration from shell scripts to a universal Python entrypoint using `uv`.

- Replaced platform-specific shell scripts with a single Python script (`scripts/convert_images_to_ppt.py`) for cross-platform compatibility.
- Updated dependencies and environment to require only the `uv` binary; shell and PowerShell scripts removed.
- Added supporting Python files and a `pyproject.toml` for dependency and environment management.
- SKILL.md revised to reflect new usage instructions and updated output contract.
- Simplified setup: Users now only need to install `uv`; all Python dependencies handled automatically.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部