# Image Optimize — shrink images with ImageMagick

> Shrink images with ImageMagick into a new file and leave the original in place — use before an upload or an attachment.

Image Optimize — shrink images with ImageMagick is a free AI agent skill on Agensi by Orbital Desk, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Orbital Desk](https://www.agensi.io/creators/orbital-desk)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/image-optimize-shrink-images-with-imagemagick
- Tags: web, automation

## About this skill

This skill makes a smaller copy of a JPEG, PNG, or WebP with ImageMagick and always leaves the original file in place. Use it when an image is larger than where it is going: a page, an attachment, or a thumbnail.

The core operation resizes so the longest side is at most 1600 pixels (shrink-only), bakes in the EXIF orientation, strips metadata, and writes a new file at a sensible quality — 82 for JPEG, 80 for WebP. The skill shows how to pick the right binary once (`magick` on ImageMagick 7, `convert` on 6) and reuse it, and how to verify the result with `identify` and `ls -l` before keeping it.

The gotchas are the point. `mogrify` overwrites the file you name, so these commands use `magick`/`convert` to a new file instead. `-auto-orient` must run before `-strip`, or a phone photo can come out sideways once its orientation tag is gone. The resize geometry must stay quoted — an unquoted `>` is a shell redirect.

One honest limit: a file that is already small can grow when it changes format. The skill's rule is to compare sizes and keep the original when the new file is larger.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Image Optimize — shrink images with ImageMagick skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Image Optimize — shrink images with ImageMagick do?

Shrink images with ImageMagick into a new file and leave the original in place — use before an upload or an attachment.

### Which AI agents support Image Optimize — shrink images with ImageMagick?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Image Optimize — shrink images with ImageMagick?

Connect your AI agent to Agensi through MCP, then ask it to use Image Optimize — shrink images with ImageMagick on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
