image-resize

image-resize is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 17 tokens per session (588 once invoked), scanned B, original, MIT.

A skill for using ImageMagick to resize, crop, convert, compress, watermark, and combine image files.

In plain words
What is it for?
Preparing images for websites or documents, converting formats, reducing file sizes, adding watermarks, and creating joined images or contact sheets.
Why use it?
It removes the need to perform repetitive image edits manually. Batch commands can process many files while keeping the originals separate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Preparing images for websites or documents, converting formats, reducing file sizes, adding watermarks, and creating joined images or contact sheets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/image-resize
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 malue-ai/dazee-small --skill image-resize
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

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-resize

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/image-resize/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/image-resize)
Your own site
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/image-resize"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/image-resize/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-resize

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/image-resize"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/image-resize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00017 $0.00588
Opus 5 $0.00009 $0.00294
Sonnet 5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 9d ago against content hash e7aba80b4268, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

image-resize scanned grade B with 1 finding 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 9d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install imagemagick
skills/library/image-resize/SKILL.md · 101 lines

What it actually says

图片处理(ImageMagick)

使用 ImageMagick 批量处理图片:缩放、裁剪、格式转换、压缩、拼接。

使用场景

  • 用户说「把这张图片缩小到 800px 宽」「批量压缩这个文件夹的图片」
  • 用户说「把 PNG 转成 JPG」「给图片加水印」
  • 用户说「把这几张图拼成一张」

前置条件

# macOS
brew install imagemagick
# Windows
winget install ImageMagick.ImageMagick
# Linux
sudo apt install imagemagick

执行方式

缩放

# 按宽度缩放(保持比例)
magick input.jpg -resize 800x output.jpg

# 按百分比
magick input.jpg -resize 50% output.jpg

# 指定尺寸(可能变形)
magick input.jpg -resize 800x600! output.jpg

格式转换

magick input.png output.jpg
magick input.jpg output.webp

批量处理

# 批量缩放目录下所有 JPG
for f in *.jpg; do magick "$f" -resize 800x "resized_$f"; done

# 批量转格式
for f in *.png; do magick "$f" "${f%.png}.jpg"; done

压缩

# JPEG 质量压缩
magick input.jpg -quality 80 output.jpg

# 去除元数据减小体积
magick input.jpg -strip -quality 85 output.jpg

拼接

# 水平拼接
magick a.jpg b.jpg +append merged.jpg

# 垂直拼接
magick a.jpg b.jpg -append merged.jpg

水印

magick input.jpg -gravity SouthEast -fill white -pointsize 24 \
  -annotate +10+10 "© 2026" output.jpg

输出规范

  • 处理前显示原始图片尺寸和大小
  • 处理后显示新尺寸和大小,以及节省的空间
  • 批量操作前确认文件数量和目标参数
  • 不覆盖原文件,输出到新文件或子目录
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. 9d ago First seen · 101 lines · 17 tokens per session scan B e7aba80b4268

Subscribe to this mod's changes

image-resize is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 588 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens