Skip to main content

docx4imgs

从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。

Quellinformationen

Repository
CoderWanFeng/python-office
Letzte Quellaktivität
4. August 2026 um 13:18
Erkannte Sprache von SKILL.md
Chinesisch
Sterne
1.371
Forks
305

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
2 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
docx4imgs
description
从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。
# docx4imgs Skill > 从 Word 里提取图片 ## 功能描述 从 Word 文档中提取所有图片,并保存到指定目录。会自动根据 word 名称在指定文件夹下生成一个子目录。 ## 所属分类 `office/skills/word/docx4imgs/` ## 调用方式 ```python from skills.word import docx4imgs docx4imgs( word_path='./test.docx', img_path='./images/' ) ``` ## 参数说明 | 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `word_path` | str | 是 | - | Word 文档的路径 | | `img_path` | str | 是 | - | 提取图片的存储位置。会根据 word 名称在指定文件夹下自动生成一个子目录 | ## 返回值 `None` ## 使用示例 ```python from skills.word import docx4imgs docx4imgs(word_path='./document.docx', img_path='./extracted_images/') ``` ## 原始函数 `office.api.word.docx4imgs`
Auf GitHub ansehen