curl -sS -X POST https://devops.majbase.com/image/tinify \
-F "file=@test.png" \
-o optimized_test.png
curl -sS -X POST https://devops.majbase.com/image/tinify \
-F "file=@photo.jpg" \
-F "width=1024" \
-F "height=1024" \
-o optimized_photo.jpg
curl -sS -X POST https://devops.majbase.com/image/tinify \
-F "file=@image.webp" \
-F "width=800" \
-F "height=800" \
-o cleaned.webp
curl -sS -X POST https://devops.majbase.com/image/tinify \
-F "file=@photo.jpg" \
-F "compression=maximum" \
-o tiny_photo.jpg
compression accepts low, balanced (default), high, or maximum.
Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:
~/.claude/skills/image/SKILL.md