Agentic Image Optimization in GitHub Copilot
Install the tinify.ai plugin for GitHub Copilot CLI. Compress, resize, upscale, and optimize images directly from your Copilot workflow.
Optimize images directly from GitHub Copilot CLI. Uses the Open Plugin surface.
Requirements
- GitHub Copilot CLI (
copilotcommand available) - Node.js ≥ 18
Install
Install from the awesome-copilot marketplace:
copilot plugin install tinify-ai@awesome-copilotIf you haven't added the marketplace yet:
copilot plugin marketplace add github/awesome-copilot
copilot plugin install tinify-ai@awesome-copilotOr install directly from GitHub:
copilot plugin install onepunchtechnology/tinify-ai-pluginVerify
copilot plugin listExpected output includes tinify-ai.
Usage example
Compress public/hero.png and convert to webpResponse:
✓ public/hero.png → public/hero.webp (1.1 MB → 162 KB, 85% smaller)Auth
Guest mode: 20 credits/day, no signup. To use credits from your account:
Log in to tinify.aiA browser window opens to https://tinify.ai/mcp/authorize. Log in and approve. Pricing →
Troubleshooting
Plugin not responding
Ensure the plugin installed successfully with copilot plugin list. If missing, re-run the install command.
copilot: command not found
Install GitHub Copilot CLI from the GitHub Copilot CLI docs.
Insufficient credits error
20 free credits/day, resets at midnight UTC. Upgrade →