Optimize Images
Automatically compress and resize images for web use, reducing file size without noticeable quality loss.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add optimize-images npx -- -y @trustedskills/optimize-images
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"optimize-images": {
"command": "npx",
"args": [
"-y",
"@trustedskills/optimize-images"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
optimize-images
What it does
This skill automatically compresses and optimizes images to reduce file size while maintaining visual quality. It helps AI agents manage media assets efficiently for faster loading times and lower bandwidth usage.
When to use it
- Reducing the size of large product photos before uploading to a database or CMS.
- Preparing image assets for mobile-first websites where data savings are critical.
- Batch processing multiple screenshots generated by an agent's analysis tasks.
- Ensuring images meet specific strict file size limits for email attachments or API uploads.
Key capabilities
- Automatic compression of image files without manual intervention.
- Preservation of visual quality during the optimization process.
- Reduction of overall file size to improve performance metrics.
Example prompts
- "Optimize these product images for our e-commerce site to ensure they load quickly on mobile devices."
- "Compress the batch of screenshots I just generated so they fit within our 5MB email attachment limit."
- "Run an optimization routine on all images in the
/assetsfolder before deploying the new landing page."
Tips & gotchas
Ensure you have a backup of original high-resolution files before running bulk optimizations, as some tools may overwrite source data. Verify the output quality visually after processing to confirm that compression did not introduce unacceptable artifacts.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.