Token导航 LogoToken导航TokenDH.com
图像处理权限需确认clawhub未标认证来源可访问clear审计通过

smart-image-to-pdfsmart 图像 TO PDF

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

8,299

周安装

339

GitHub Stars

公开资料未说明

下载量

2,685
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:smart-image-to-pdf(smart 图像 TO PDF)
来源仓库:https://github.com/wxttt/smart-image-to-pdf
安装命令:
openclaw skills install smart-image-to-pdf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install smart-image-to-pdf

简介

将多张图像合并为分页 A4 PDF 文档,智能处理分页符防止文字被截断。

  • 适用于截图归档、文档合辑或打印材料整理,保持版式整洁美观。
  • 支持拖拽上传或 URL 链接导入,兼容 PNG/JPG/BMP 等多种格式。
  • 生成的 PDF 默认保留原始分辨率,大尺寸图片可能导致文件体积膨胀。
  • 建议压缩图片后再合并,兼顾阅读体验与传输效率。

SKILL.md

name
image-to-pdf
description
Combine multiple image screenshots into a paginated A4 PDF. Intelligently handles page breaks to avoid cutting through text. Use when the user wants to combine, merge, or stitch images/screenshots into a PDF, especially exam papers or documents.

Image to PDF

Combine multiple image screenshots (typically exam paper questions) into a well-formatted, paginated A4 PDF that is ready for printing.

When to Use

Trigger this skill when the user wants to:

  • Combine / merge / stitch images into a PDF
  • Put screenshots together into a printable document
  • Create a PDF from exam paper photos or screenshots
  • Pack question images onto A4 pages for printing

Look for phrases like: "拼到一起", "合成PDF", "拼接", "打印", "combine images", "merge into PDF", etc.

How to Use

This skill includes a Python script at scripts/combine.py (relative to this SKILL.md).

Step 1: Identify inputs and output

From the user's request, extract:

  • Input: a directory path or list of image file paths
  • Output: the desired PDF output path (default: output.pdf in the input directory)

Step 2: Run the script

Use uv run to handle dependencies automatically (no manual install needed):

uv run --with Pillow --with numpy python3 <path-to-this-skill>/scripts/combine.py <input> -o <output.pdf>

Input formats:

  • A directory: python scripts/combine.py ./my_images/ -o result.pdf
  • Multiple files: python scripts/combine.py img1.png img2.png -o result.pdf

Optional flags:

  • --margin <px>: page margin in pixels at 300dpi (default: 80, ~7mm)
  • --no-trim: disable automatic whitespace border trimming
  • --dpi <n>: output DPI (default: 300)

Step 4: Report result

Tell the user:

  • How many images were processed
  • How many PDF pages were generated
  • The output file path

What the Script Does

  1. Loads images, auto-trims whitespace borders
  2. Scales all images to the same width (A4 printable width)
  3. Greedily packs images onto A4 pages (tight layout, no gaps)
  4. When a page break is needed, uses pixel analysis to find whitespace rows so text is never cut
  5. Outputs a 300 DPI PDF ready for printing

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.71%
按下载量换算1,979

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills