Agentic Image Optimization in GitHub Copilot
Install the tinify.ai Open Plugin for GitHub Copilot. Compress, resize, and optimize images from Copilot Chat.
Agentic Image Optimization in GitHub Copilot
Optimize images directly from GitHub Copilot Chat. Uses the Open Plugin surface.
Requirements
- GitHub Copilot subscription (Individual, Business, or Enterprise)
- GitHub CLI (
gh) or Copilot Chat in VS Code / JetBrains
Install
gh copilot configure --plugin tinify-ai --url https://tinify.ai/.well-known/ai-plugin.jsonVerify
gh copilot extensions listExpected output includes tinify-ai.
Usage example
In Copilot Chat:
@tinify-ai 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. For your account's credits, ask Copilot Chat:
@tinify-ai loginA browser window opens to https://tinify.ai/mcp/authorize. Log in and approve. Pricing →
Troubleshooting
Plugin not responding in Copilot Chat
Ensure you're using @tinify-ai prefix in chat. Check the extension is listed with gh copilot extensions list.
gh: command not found
Install GitHub CLI: brew install gh (macOS) or download from cli.github.com.
Insufficient credits error
20 free credits/day, resets at midnight UTC. Upgrade →