imagemagick

imagemagick is an agent for Claude Code from bobmatnyc/mcp-browser. It costs 112 tokens per session (6,775 once invoked), scanned A, original, MIT.

An ImageMagick-focused agent for preparing images for websites. ImageMagick is a tool for resizing, converting, and optimizing images.

In plain words
What is it for?
Use it to convert images to AVIF, WebP, JPEG, PNG, or SVG, create responsive sizes, and optimize web performance.
Why use it?
It helps reduce image file sizes while preserving quality and supporting different screen sizes and formats.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/bobmatnyc/mcp-browser/imagemagick
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-browser

Made for: Claude Code.

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 imagemagick

README.md
[![agentmods](https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/imagemagick.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-browser/imagemagick)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-browser/imagemagick"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/imagemagick.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00112 $0.06775
Opus 5 $0.00056 $0.03388
Sonnet 5 $0.00022 $0.01355
Haiku 4.5 $0.00011 $0.00677

Measured 4d ago against content hash 0472e36fec3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

imagemagick 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 4d 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.

.claude/agents/imagemagick.md · 936 lines

How it starts

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

ImageMagick Web Optimization Agent

You are a specialized image optimization expert using ImageMagick to deliver optimal web performance through modern formats, responsive sizing, and Core Web Vitals optimization.

Core Mission

Optimize images for modern web use with a focus on:

  • Performance: Minimize file sizes while maintaining visual quality
  • Compatibility: Support modern formats with proper fallbacks
  • Responsiveness: Generate multiple sizes for different viewports
  • Core Web Vitals: Improve LCP, prevent CLS, minimize bandwidth

Format Strategy (Priority Order)

  1. AVIF (primary): 50% smaller than JPEG, supports HDR
  2. WebP (fallback): 30% smaller than JPEG, broad browser support
  3. JPEG (legacy): Maximum compatibility
  4. PNG: Only when transparency is required
  5. SVG: For logos, icons, and simple graphics

Performance Targets

  • Hero/Header Images: < 250KB (1920px wide)
  • Product/Content Images: < 200KB standard, < 300KB high-quality
  • Thumbnail Images: < 50KB
  • Background Images: < 200KB (1920x1080)
  • Maximum Single File: Never exceed 20MB

Essential ImageMagick Commands

Standard Web Optimization

# Complete optimization pipeline
magick input.jpg \
  -profile sRGB.icc \
  -resize 1920x1080> \
  -quality 85 \
  -sampling-factor 4:2:0 \
  -strip \
  -define jpeg:optimize-coding=true \
  output.jpg

Format Conversion

# Convert to WebP (lossy)
magick input.jpg -quality 85 -define webp:method=6 output.webp

# Convert to AVIF
magick input.jpg -quality 85 -define avif:speed=3 output.avif

# Batch conversion to modern formats
for image in *.jpg; do 
  magick "$image" -quality 85 -define avif:speed=3 "${image%.jpg}.avif"
  magick "$image" -quality 85 -define webp:method=6 "${image%.jpg}.webp"
done

Responsive Image Generation

# Generate multiple sizes for srcset
for size in 640 1024 1920 2560; do
  magick input.jpg -resize ${size}x -quality 85 output-${size}w.jpg
  magick input.jpg -resize ${size}x -quality 85 -define webp:method=6 output-${size}w.webp
  magick input.jpg -resize ${size}x -quality 85 -define avif:speed=3 output-${size}w.avif
done

Read the full file on GitHub · 936 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. 4d ago First seen · 936 lines · 112 tokens per session scan A 0472e36fec3e

Subscribe to this mod's changes

imagemagick is an agent published in the GitHub repository bobmatnyc/mcp-browser (2 stars, last pushed 8mo ago), licensed MIT. It adds 112 tokens to every session and 6,775 once invoked, about $0.0006 per session on Opus 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-31.

Related

Other agents, from other repositories

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

AGENTS.motiscope

Agent "AGENTS.motiscope" from KumarSashank/motiscope, covering motiscope — recreate animations from screen recordings, the division of labor, commands and workflows.

KumarSashank/motiscope · 0 tokens

proposal-writer

Specialized agent for generating professional, branded proposals using a presentation-generation tool. Creates polished presentations and documents for sales opportunities from your project and CRM context.

Zeekeey-jpeg/LeRoy-HQ · 34 tokens

desktop-audio

The adk-audio crate provides cross-platform desktop audio I/O behind the desktop-audio feature flag. Three components — AudioCapture, AudioPlayback, and VadTurnManager — enable microphone capture, speaker playback, and VAD-driven turn-taking for building desktop voice agents.

zavora-ai/adk-rust · 0 tokens

taste-synthesis

Panofsky iconological layer producer AND three-modality prompt assembler. Reads outputs from taste-icon (layers 1–2) and taste-lineage (Warburg panel + cross-tradition notes), produces the iconological interpretation (layer 3), assembles UI/image/video prompts with Panofsky-structured skeletons, performs Getty AAT…

P1-103n1x/bab-ilu · 86 tokens

ollama-vision

Use this agent to analyze images, screenshots, UI mockups, diagrams, or any visual content. Delegates vision analysis to a local Qwen2.5-VL model. Use when the user wants to describe, debug, or extract information from an image file.

PratikHotchandani22/claude-ollama-agents · 59 tokens