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

image-paginator图像分页器

Agent Skill

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

总安装

3,403

周安装

139

GitHub Stars

公开资料未说明

下载量

1,101
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install image-paginator

简介

将超长图像自动切分为带页码的分页 PDF。

  • 保留重叠区域便于查看连续画面细节。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 适用于屏幕截图与扫描文档的长图归档场景。
  • 输出文件包含序列号与间隙排版提升阅读体验。
  • image-paginator 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
image-paginator
description
Slices long images/screenshots into overlapping segments, adds sequence numbers, and auto-arranges them into a paginated PDF with gaps and page numbers. Supports multiple images. (律师证据长截图转PDF)
license
GPL-3.0
metadata
author
WUDI
version
2.1

Image Paginator(律师证据长截图转PDF)

将长截图/长图智能分页为规范 PDF,支持网格切片、页码标注、微信证据排版

📌 快速上手(律师场景示例)

场景:微信聊天截图 → 提交法院的证据 PDF

# 1. 律师导出微信聊天记录为长截图
# 2. 一键转换:
python scripts/slice_n_pdf.py "/Users/律师/Desktop/聊天记录.jpg" \
  -d "/Users/律师/Desktop" -o "聊天证据_20250105.pdf" --clean

# 3. 直接提交 PDF,打印存档,或发邮件
open "/Users/律师/Desktop/聊天证据_20250105.pdf"

⚖️ 律师场景专区

适用场景

场景输入输出
微信聊天证据截图微信长截图(竖向拼接后)分页 PDF,含页码+序号
合同附件超长截图多页合同 PDF 截图拼接A4 规范 PDF,可打印
笔录/判决书截图判决书长截图2×2 网格 PDF,便于阅读
批量证据材料归档多张证据截图(不同尺寸)统一宽度,竖向拼接,分页
邮件/短信截图证据手机截图带间距 PDF,避免阅读串行

输入规范建议

  • 分辨率:推荐 1080px 宽,最佳清晰度
  • 格式:PNG / JPG 均可,建议 PNG 保留更多细节
  • 多张截图:按时间顺序传入,自动按顺序拼接
  • 不要裁剪:保持原始宽高比,工具会自动适配

输出规范

  • 纸张尺寸:A4(595 × 842 pt)
  • 网格布局:默认 2 列 × 2 行,每页 4 格
  • 页码:底部居中,格式 - N -
  • 切片编号:每个格子左上角标注,格式如 1-12-3
  • 间距:格子间默认留 40px 灰色间隙,便于翻页区分
  • 尾部合并:最后一页不足一格时,自动合并到前一页,避免孤零零一行

法院提交注意事项

  1. 截图完整性:确保聊天记录从头到尾完整,不要断章取义
  2. 时间戳:PDF 页码和序号可以快速定位原文位置
  3. 尺寸:导出前确认截图宽度统一(建议 1080px),避免 PDF 页面大小不一
  4. 合并打印:如有多个案件,可先生成多个 PDF,再合并为一个文件

📊 效果示意图

场景总览

场景总览

律师场景:输入 → 输出

律师场景对比

💡 示意图仅供参考,实际效果取决于截图分辨率和参数设置。

Prerequisites

Required python packages: Pillow, fpdf2.

How to use this skill

Execute the python script scripts/slice_n_pdf.py via the command line.

Command Syntax

python scripts/slice_n_pdf.py <source1> [source2 ...] -d <output_dir> [OPTIONS]

Required Arguments

  • sources (positional): Path(s) to source image(s). Multiple images will be auto-resized to the same width and concatenated in order.
  • -d / --dest: Directory to save the output PDF.

Optional Arguments

  • -o / --output: Name of the output PDF file (default: output.pdf).
  • --tile: Height of each tile in pixels (default: 2000).
  • --bleed: Bleed / overlap in pixels (default: 200).
  • --cols: Grid columns (default: 2).
  • --rows: Grid rows (default: 2).
  • --gutter: Gap between cells in pixels (default: 40).
  • --edge: Page margin in pixels (default: 25).
  • --no-numbers: Omit page numbers at the bottom.
  • --clean: Remove intermediate tile images after build.

Key Features (v2.1)

  1. Multiple source images: Pass multiple paths; images auto-resize to uniform width and concatenate vertically.
  2. Sequence numbers: Each tile has a numbered badge (1, 2, 3…) on the top-left corner.
  3. Gaps between tiles: Configurable gutter with light gray cell backgrounds for readability.
  4. Consistent page sizes: All PDF pages share the same dimensions.
  5. Page numbers: Each page has a centered - N - footer (disable with --no-numbers).
  6. Adaptive tail merging: Short tail segments merge into the previous tile to avoid tiny orphans.
  7. Parameter validation: Auto-checks tile > bleed, cols/rows range (1-10), file existence, etc.

⚠️ Important Instructions for the Agent (Guardrails)

  1. Always use --clean by default unless the user specifically asks to keep tiles.
  2. Absolute Paths: Resolve ~ and relative paths to absolute paths before running.
  3. Multiple images: When the user provides multiple images, pass all as positional arguments.
  4. DO NOT try to read the output PDF: The result is binary. Just check STDOUT — if it says ✓ Done, tell the user the file path.
  5. Always open the PDF for the user after generation using open <path> (macOS).

Examples

Single long image:

python scripts/slice_n_pdf.py "/Users/bob/Downloads/long_chat.png" \
  -d "/Users/bob/Desktop" -o "chat.pdf" --clean

Multiple images with custom grid:

python scripts/slice_n_pdf.py "/Users/bob/Desktop/1.jpg" "/Users/bob/Desktop/2.jpg" \
  -d "/Users/bob/Desktop" -o "combined.pdf" \
  --cols 2 --rows 2 --gutter 40 --clean

Single column, larger tiles:

python scripts/slice_n_pdf.py "/abs/path/webpage.jpg" \
  -d "./results" --cols 1 --rows 3 --tile 3000 --gutter 20 --clean

参数速查表

参数默认值说明
--tile2000每格切片高度(像素),建议 ≥ 100 且 > --bleed
--bleed200上下切片重叠高度(像素),必须 < tile
--cols2每页网格列数(1-10)
--rows2每页网格行数(1-10)
--gutter40格子间距(像素)
--edge25页面边距(像素)
--no-numbers关闭页码
--clean生成后清理临时切片图
⚠️ 参数校验:脚本会自动检查 tile > bleed、cols/rows 在合理范围内、文件存在等,发现问题直接报错退出。

一键安装脚本

# 方法一:克隆后安装
git clone https://github.com/wux818738-alt/openclaw-skill-image-paginator.git
cd openclaw-skill-image-paginator
bash install.sh

# 方法二:直接下载
curl -fsSL https://github.com/wux818738-alt/openclaw-skill-image-paginator/archive/refs/heads/main.zip -o /tmp/skill.zip
unzip /tmp/skill.zip -d ~/.qclaw/skills/
pip3 install fpdf2 Pillow

安装后直接运行(不需要指定完整路径):

python ~/.qclaw/skills/image-paginator/scripts/slice_n_pdf.py <图片> -d <输出目录>

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

74.09%
按下载量换算816

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills