image-edit 是什么?
Edit an existing image with deterministic pixel operations via image_edit — rotate, flip, crop (free/ratio/circle), resize, compress/format-convert, adjust brightness/saturation/contrast, sharpen, blur, mosaic, rounded corners, negate, overlay, and image watermark. Use when the user asks to 裁剪/旋转/翻转/缩放/压缩/打码/马赛克/加水印/叠图/圆角/调亮/调暗/锐化/模糊 an existing image, convert format, or hit a file-size limit. For AI re-creation, restyle, or adding text, use image-creation instead.
中文说明由本站依据来源整理;英文原文保留在页面下方。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
image-edit,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 image-edit
请在 Codex 的当前工作环境中安装并检查 image-edit 这个 Skill。
项目身份:yikart/aitoearn / image-edit
来源:https://github.com/yikart/aitoearn/blob/11dd1957d0c69ae2b27a0b8a47acdf6675715558/skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
已定位的源文件:skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 image-edit
请在 Claude Code 的当前工作环境中安装并检查 image-edit 这个 Skill。
项目身份:yikart/aitoearn / image-edit
来源:https://github.com/yikart/aitoearn/blob/11dd1957d0c69ae2b27a0b8a47acdf6675715558/skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
已定位的源文件:skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 image-edit
请在 Cursor Agent 的当前工作环境中安装并检查 image-edit 这个 Skill。
项目身份:yikart/aitoearn / image-edit
来源:https://github.com/yikart/aitoearn/blob/11dd1957d0c69ae2b27a0b8a47acdf6675715558/skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
已定位的源文件:skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 image-edit
请在 当前 Agent 的当前工作环境中安装并检查 image-edit 这个 Skill。
项目身份:yikart/aitoearn / image-edit
来源:https://github.com/yikart/aitoearn/blob/11dd1957d0c69ae2b27a0b8a47acdf6675715558/skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
已定位的源文件:skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-23T04:29:48.865Z
- 中文使用说明
- 已有中文用途摘要;具体用法尚待逐项整理
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md · 抓取时间 2026-11-23T04:29:48.865Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Edit an existing image with deterministic pixel operations via image_edit — rotate, flip, crop (free/ratio/circle), resize, compress/format-convert, adjust brightness/saturation/contrast, sharpen, blur, mosaic, rounded corners, negate, overlay, and image watermark. Use when the user asks to 裁剪/旋转/翻转/缩放/压缩/打码/马赛克/加水印/叠图/圆角/调亮/调暗/锐化/模糊 an existing image, convert format, or hit a file-size limit. For AI re-creation, restyle, or adding text, use image-creation instead.
查看源文件章节 / Source sections
- 原文:Image Edit
- 原文:Tool
- 原文:When to use
- 原文:When not to use
- 原文:Operations quick reference
- 工作流程 / Workflow
- 原文:Recipes
- 原文:Errors
原文:Image Edit
Edit an existing image with `image_edit` — a local, deterministic pixel pipeline. No AI model and no credits for `image_edit` itself; the auxiliary `probe_image_metadata` call is billed per use. The result is pixel-exact and repeatable. This is **fine-grained image editing**: unlike AI re-creation (`image-creation`), every operation is pixel-exact. Precision is the premise — free-crop regions, mosaic areas, watermark/overlay positions, and drawn shapes are source-image pixel coordinates, so always work from the real dimensions returned by `probe_image_metadata`, never from guesses.
原文:Tool
- `image_edit`: one call per image. Pass `url` (source image) plus `operations`, an ordered array of 1–20 operations applied in sequence. - `probe_image_metadata` (auxiliary): read the source image's real width/height, format, and size with `info_type=metadata` (default). When transparency matters, use `info_type=alpha`; it also returns width/height/format, so do not call metadata first unless size is also required. Each probe is billed; do not call it again for the same URL. - Output: `url` (edited image), `width`, `height`, `format`, `sizeBytes`. - `compress` must be the **last** operation (it is the export step). - Operations that introduce transparency (circle crop, rounded corners) output PNG with alpha. Do not call other image CLIs, local scripts, or external image APIs.
原文:When to use
- Deterministic edits that must not alter content: crop to a ratio, resize for a platform, compress under a size limit, convert format - 加水印 (logo), 叠图 (composite another image), 打码 (mosaic a region), 圆角, rotate/flip - Adjust brightness/contrast/saturation, sharpen, blur, negate
原文:When not to use
- Change/restyle content, remove objects, generate variants → `image-creation` (`generate_image`) - Add text or text watermarks → `generate_image` (AI image editing); this tool renders no text - Background removal → not supported here; prompt a chroma-key background per `image-creation`, then (future) key it out - The source is not an image URL the tool can download
原文:Operations quick reference
| operation | key params | default | |---|---|---| | `rotate` | `angle` (1–359, counter-clockwise), `background` | transparent fill | | `flip` | `direction`: `horizontal` (左右镜像) / `vertical` (上下翻转) | — | | `crop` | `mode`: `free` + `region{x,y,width,height}`; `ratio` + `ratio:"16:9"` + `position`; `circle` (inscribed circle) | — | | `resize` | `width`/`height` (one or both), `fit`: cover/contain/fill/inside/outside, `background` | `inside` | | `compress` | `format`: jpeg/png/webp, `quality` (1–100), `targetMaxBytes` | keep source format, quality 80 | | `adjust` | `brightness`, `saturation`, `contrast` (multipliers, 1 = unchanged) | — | | `sharpen` | `strength`: light/medium/strong | — | | `blur` | `sigma` (0.3–100, higher = blurrier) | — | | `mosaic` | `region` (default whole image), `pixelSize` (2–200) | — | | `watermark` | `image.url` (+`width` or `scale`), `position` (9-grid), `margin`, `opacity`, `tile{spacingX,spacingY,rotate}` | bottom-right, opacity 1 | | `overlay` | `url`, `position`/`margin`, `width`/`scale`, `opacity` | center | | `draw` | `shapes`: rects (radius, fill), ellipses, lines, points, arrows — each with `color`/`lineWidth` | red, 4px line | | `rounded-corners` | `radius` (px) | — | | `negate` | — | — | `position` is a 9-grid value: `top-left` … `center` … `bottom-right`.
工作流程 / Workflow
1. Get the source image URL (user attachment, media library, or a previous generation result). 2. Call `probe_image_metadata` for the source dimensions (`info_type=metadata`; use `info_type=alpha` when transparency matters). Pixel-exact coordinates are the premise of fine-grained editing: free-crop regions, mosaic areas, and watermark/overlay placement must be computed from the real width/height — never guessed. 3. Decompose the request into ordered operations. Prefer one call with all steps over many calls; each call re-downloads and re-uploads. - Geometry first (crop → resize → rotate), then color (adjust/sharpen/blur), then composition (overlay/watermark), `compress` last. 4. Pick sensible defaults without asking: `compress` quality 80; watermark `margin` ≈ 2% of the shorter side; mosaic `pixelSize` ≈ image width / 30; blur sigma 2–8 for background softening. 5. Call `image_edit` once with the full pipeline. 6. Verify the output (`width`/`height`/`format`/`sizeBytes` match the request, e.g. size limit honored). 7. Iterate by re-running the whole pipeline from the original URL with adjusted params — do not chain edits on the edited output (avoids compounding loss). 8. Report the returned `url` and the final params.
文件 SHA256:d66b8d34616250eb9fe15b15db8e5b692606b8629c7a21615ecd86e650b9415a
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Edit an existing image with deterministic pixel operations via image_edit — rotate, flip, crop (free/ratio/circle), resize, compress/format-convert, adjust brightness/saturation/contrast, sharpen, blur, mosaic, rounded corners, negate, overlay, and image watermark. Use when the user asks to 裁剪/旋转/翻转/缩放/压缩/打码/马赛克/加水印/叠图/圆角/调亮/调暗/锐化/模糊 an existing image, convert format, or hit a file-size limit. For AI re-creation, restyle, or adding text, use image-creation instead.
历史收录数据
| 来源仓库 | yikart/aitoearn |
|---|---|
| Skill源路径 | skills/claude-plugin-aitoearn/skills/image-edit/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
