返回顶部
w

word-to-jpgWord转图片

Convert Word documents (.docx/.doc) to high-quality JPG images with 100% formatting fidelity. Uses Word COM interface to export PDF, then PyMuPDF renders at 300 DPI.

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

word-to-jpg

word-to-jpg 技能

将 Word 文档转换为高质量 JPG 图片(300 DPI,100% 格式保真)。

触发词

当用户提到以下任一短语时,触发此技能:

  • - 转成图片 / 转为 JPG
  • word 转图片 / doc 转图片
  • 转成高质量图片
  • 文档转图片

功能

  • - 自动查找最新接收的 Word 文档
  • Word 原生导出 PDF(100% 格式保真)
  • PyMuPDF 渲染为 300 DPI JPG
  • 支持中文文件名、多页文档

依赖

首次使用安装:
powershell
pip install comtypes pymupdf -q

使用方法

直接转换(接收文件后):

转成图片

指定文件:

word-to-jpg C:\path\to\document.docx

指定目录(转换最新文件):

word-to-jpg C:\path\to\docs\

输出

  • - 目录: ~/.openclaw/media/outbound/word-images
  • 命名: page1.jpg, page2.jpg, ...
  • 分辨率: 2382×3368 (300 DPI)
  • 质量: JPG 95%

原理

  1. 1. Word → PDF: comtypes 调用 Word COM 接口静默导出
  2. PDF → JPG: PyMuPDF 4 倍缩放渲染 (72×4=288 DPI)

要求

  • - ✅ Microsoft Word(必需)
  • ❌ WPS(不兼容)
  • ⚠️ 中文文件名自动处理(复制到临时英文路径)

常见问题

缺模块: pip install comtypes pymupdf -q
无 Word: 需安装 Microsoft Word(WPS 不兼容)
速度慢: 首次启动 Word 较慢,后续正常
调 DPI: 修改脚本 zoom 参数(4.0=300 DPI, 2.0=150 DPI)

文件结构

~/.openclaw/skills/word-to-jpg/
├── SKILL.md
└── scripts/
└── word-to-jpg-converter.py

更新日志

  • - 1.0.0 (2026-03-30): 初始版本
- Word → PDF → JPG 两步转换 - 300 DPI 高质量输出 - 中文文件名自动处理

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 word-to-jpg-1775931122 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 word-to-jpg-1775931122 技能

通过命令行安装

skillhub install word-to-jpg-1775931122

下载

⬇ 下载 word-to-jpg v1.0.1(免费)

文件大小: 3.75 KB | 发布时间: 2026-4-12 11:59

v1.0.1 最新 2026-4-12 11:59
word-to-jpg v1.0.1

- Added detailed instructions for converting Word documents to high-quality JPG images at 300 DPI.
- Updated usage examples and trigger phrases for easier operation.
- Improved documentation on supported features, dependencies, output paths, and common troubleshooting.
- Clarified file and output naming conventions and compatibility requirements.

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

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

p2p_official_large
返回顶部