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

image-highlight-cropper图像高亮裁剪器

Agent Skill

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

总安装

9,474

周安装

387

GitHub Stars

公开资料未说明

下载量

3,034
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install image-highlight-cropper

简介

自动识别大图中的重点区域进行智能裁剪。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

  • 突出显示细节部分适合制作特写镜头效果。
  • 上传长图后系统自动分析并返回裁剪建议。
  • 裁剪精度取决于原始图像分辨率与内容复杂度。
  • image-highlight-cropper 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
image-highlight-cropper
description
>

Image Highlight Cropper

Extract the 5 most visually interesting detail regions from a large image, crop them as squares, display them in the chat (2 per row), and save them as downloadable files.

Workflow

Step 1 – Analyse the image

Look carefully at the uploaded image. Identify the 5 most interesting regions based on:

  • Visual richness: texture, fine detail, intricate patterns
  • Artistic significance: focal points, expressive faces, key objects
  • Contrast and color drama
  • Unique or surprising elements the viewer might miss at first glance

⚠️ Signature rule: If a painter's signature is visible anywhere in the image, it must always be one of the 5 highlights. Center the crop precisely on the signature so it is fully visible and not cut off.

⚠️ Strict 1:1 square-fit rule: Every highlight must be a subject that naturally fills a square frame. Before selecting a region, ask: *"Does this subject fit well into a square?"*

  • ✅ Good: a face, a bouquet of flowers, a single tree, a lamp post with surroundings, a signature, a wheel, a window, a doorway, a small group of figures
  • ❌ Bad: a wide panoramic skyline, a long horizontal street scene, a tall thin tower spanning the full image height — these are inherently non-square and will look like an awkward strip crop
  • If a subject is too wide or too tall to feel natural in a 1:1 frame, skip it and choose something else that genuinely fits a square
  • The goal: each crop looks intentional and well-composed, as if it were a standalone photograph

For each region, record:

  • A short label (e.g. "Gesicht links", "Goldornament", "Signatur")
  • Center point (cx, cy) of the subject and a half-size (half the desired square side length)
  • A one-sentence explanation of why this area is interesting

Step 2 – Crop with Python (Pillow)

Use the bash_tool + Python to:

  1. Load the image from /mnt/user-data/uploads/<filename>
  2. For each region: use the save_crop helper below — it handles edge cases automatically
  3. Save each crop to /mnt/user-data/outputs/highlight_1.jpghighlight_5.jpg

Choosing the half-size: Claude decides per region:

  • Tiny ornament or signature → half = 100–200 px
  • Face or small group → half = 200–350 px
  • Large scene or texture area → half = 350–600 px
  • Rule of thumb: the crop should feel like a natural close-up. Always use center-based coordinates.

Edge case — subject at image border: If the desired crop extends beyond the image boundary, save_crop takes whatever image content is available and places it centered on a white square canvas (side = longest available side). This keeps the result square and clean with no distortion.

from PIL import Image
import os

img = Image.open("/mnt/user-data/uploads/IMAGE_FILENAME")
w, h = img.size

def save_crop(img, w, h, cx, cy, half, path):
    x1 = max(0, cx - half)
    x2 = min(w, cx + half)
    y1 = max(0, cy - half)
    y2 = min(h, cy + half)
    rect_w = x2 - x1
    rect_h = y2 - y1

    crop = img.crop((x1, y1, x2, y2))

    if rect_w == rect_h:
        # Already square — save directly
        crop.save(path, quality=92)
    else:
        # Place on white square canvas, centered horizontally and vertically
        canvas_size = max(rect_w, rect_h)
        canvas = Image.new("RGB", (canvas_size, canvas_size), (255, 255, 255))
        paste_x = (canvas_size - rect_w) // 2
        paste_y = (canvas_size - rect_h) // 2
        canvas.paste(crop, (paste_x, paste_y))
        canvas.save(path, quality=92)

# Define crops by CENTER point (cx, cy) and half-size
crops = [
    # (label, cx, cy, half)
    ("highlight_1", cx1, cy1, half1),
    ("highlight_2", cx2, cy2, half2),
    ("highlight_3", cx3, cy3, half3),
    ("highlight_4", cx4, cy4, half4),
    ("highlight_5", cx5, cy5, half5),
]

os.makedirs("/mnt/user-data/outputs", exist_ok=True)

for label, cx, cy, half in crops:
    save_crop(img, w, h, cx, cy, half, f"/mnt/user-data/outputs/{label}.jpg")

print("Done")

Step 3 – Display in chat

After saving, use present_files to make all 5 crops downloadable.

Then write a short markdown summary:

## 🎨 5 Highlights aus dem Bild

**1. [Label]** – [Erklärung warum interessant]
**2. [Label]** – ...
...

Show the crops 2 per row by presenting them via present_files and listing them clearly with their labels. Users can download each file individually.

Step 4 – Invite feedback

Ask the user: "Soll ich andere Bereiche auswählen, oder die Größe der Crops anpassen?"


Tips for choosing good crops

  • Avoid overlap between the 5 regions as much as possible
  • Spread across the image — don't cluster all crops in one corner
  • For paintings: prioritize faces, hands, symbolic objects, and texture-rich backgrounds
  • For technical drawings: prioritize labels, detail views, and complex intersections
  • half-size should be roughly 10–20% of the shorter image dimension so crops feel like genuine close-ups, not tiny stamps

Error handling

  • If the image cannot be opened, tell the user and ask them to re-upload
  • If Pillow is not installed: pip install Pillow --break-system-packages

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

83.22%
按下载量换算2,525

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills