- Home
- Skills
- Workflow Automation
- Image Optimize — shrink images with ImageMagick
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.
Free
Works with the AI Agents you already use
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires
Permissions
Allowed Hosts