image-transform

image-transform is a skill for Claude Code, Codex from meitu/meitu-skills. It costs 112 tokens per session (2,148 once invoked), scanned A, original, MIT.

An image transformation tool performs rotations, flips, proportional resizing, enlargement by 2, 4, or 8 times, and AI canvas expansion without intentionally changing the existing scene.

In plain words
What is it for?
Use it to rotate or mirror an image, enlarge or reduce it proportionally, change its aspect ratio, extend the canvas, or recompose it for a target size.
Why use it?
It handles common size and layout changes while separating them from resolution enhancement, which is a different task.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to rotate or mirror an image, enlarge or reduce it proportionally, change its aspect ratio, extend the canvas, or recompose it for a target size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meitu/meitu-skills/image-transform
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add meitu/meitu-skills --skill image-transform
Clone the repo
git clone --depth 1 https://github.com/meitu/meitu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-transform

README.md
[![agentmods](https://agentmods.dev/badge/skills/meitu/meitu-skills/image-transform/github.svg)](https://agentmods.dev/skills/meitu/meitu-skills/image-transform)
Your own site
<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-transform"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-transform/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-transform

Your own site · 80×15
<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-transform"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-transform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 5
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 9
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 11
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 17
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 21
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.02148
Opus 5.5 $0.00045 $0.00859
Sonnet 5.5 $0.00022 $0.00430
Haiku 4.5 $0.00011 $0.00215

Measured 2mo ago against content hash 886bb407b43b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-transform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/image-transform/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image Transform

Overview

对已有图片做几何变换(不改变画面内容)。4 类场景:旋转/翻转(-180°~180°)、等比放大(2/4/8 倍)、无损等比缩小、智能构图/画布扩展/尺寸变换(AI outpainting)。关键区分:"放大 N 倍/缩小到 800 宽/扩图/改尺寸"走本工具;"放大到 4K"(分辨率目标)走 image-superres-enhance。

API Mapping

  • 旋转/翻转:api_v1_layer_flow_edit_rotate
  • 等比放大:image_upscale_equal_proportion_edit
  • 无损缩小:image_dldownscaling_edit
  • 智能构图 / 画布扩展 / 尺寸变换:image_extension_layer_flow_filter

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 实际执行(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

路径别名:$VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6
  2. 已用 CONFIG AKSK 跑过 meitu tools update
  3. 当前 AKSK = EXEC,MEITU_OPENAPI_TOOL_TASK_MODE=command
  4. output_dir:openclaw.yaml → ./output/ |else → $VISUAL/output/image-transform/;mkdir -p

Execute

触发信号 / 路由规则

核心维度:操作意图分支。

场景 判定关键词 路由
旋转 / 翻转 旋转、顺时针、逆时针、翻转、镜像 api_v1_layer_flow_edit_rotate
等比放大(倍数) 放大 2/4/8 倍、等比放大 image_upscale_equal_proportion_edit
无损缩小 缩小到 xxx、无损缩小 image_dldownscaling_edit
智能构图 / 画布扩展 / 改比例 / 尺寸变换 扩图、改成 16:9、竖版改横版、outpaint、智能构图、重新构图、调整到指定宽高 image_extension_layer_flow_filter

路由原则:缩小目标 > 原图 → 自动转 image_upscale_equal_proportion_edit;缩小目标 = 原图 → 直接返回原图。

参数定义

通用:

参数 类型 必填 说明
image_url STRING 是 图片地址

api_v1_layer_flow_edit_rotate:

参数 类型 范围 默认 说明
rotate NUMBER -180 ~ 180 0 旋转角度;超出自动 clamp
flip_x BOOLEAN true/false false 水平翻转
flip_y BOOLEAN true/false false 垂直翻转

image_upscale_equal_proportion_edit:

参数 类型 范围 默认 说明
sr_num INTEGER 2 / 4 / 8 2 放大倍数;非法值取最近合法值(3→2,6→8)

image_dldownscaling_edit:

参数 类型 说明
target_width INTEGER 目标宽度(像素 px,禁止传比例数字)
target_height INTEGER 目标高度(像素 px,禁止传比例数字)

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 173 lines · 112 tokens per session scan A 886bb407b43b

Subscribe to this mod's changes

image-transform is a skill published in the GitHub repository meitu/meitu-skills (36 stars, last pushed 2mo ago), licensed MIT. It adds 112 tokens to every session and 2,148 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

image-transform compared with skills from other repositories

image-transform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-transformmeitu/meitu-skillsSkill362mo agoMITA112Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill106kyesterdayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106kyesterdayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106kyesterdayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k4d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code